whitebophir/Dockerfile

20 lines
257 B
Docker
Raw Normal View History

FROM node:14-alpine
2018-11-26 15:29:11 +00:00
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 . .
2021-01-10 18:15:02 +00:00
ENV PORT=8080
EXPOSE 8080
VOLUME /opt/app/server-data
2018-11-26 15:29:11 +00:00
CMD ["npm", "start"]