whitebophir/Dockerfile
2021-06-09 17:35:50 +02:00

19 lines
253 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=80
EXPOSE 80
VOLUME /opt/app/server-data
CMD ["npm", "start"]