whitebophir/Dockerfile
2021-05-05 15:12:14 -07:00

19 lines
257 B
Docker

FROM node:14-alpine
WORKDIR /opt/app
RUN chown -R 1000:1000 /opt/app
USER 1000:1000
COPY package.json package-lock.json ./
RUN npm ci --production
COPY --chown=1000:1000 . .
ENV PORT=8080
EXPOSE 8080
VOLUME /opt/app/server-data
CMD ["npm", "start"]