red-coder-bh/Dockerfile

14 lines
249 B
Docker
Raw Normal View History

2022-04-16 22:58:32 +03:00
FROM 'node:14'
2022-04-16 23:26:31 +03:00
RUN mkdir -p /usr/src/app/dist/
2022-04-16 22:58:32 +03:00
WORKDIR /usr/src/app/
2022-04-16 23:26:31 +03:00
COPY ./dist /usr/src/app/dist
2022-04-16 22:58:32 +03:00
COPY ./package.json /usr/src/app/package.json
COPY ./.env /usr/src/app/.env
RUN npm install --only=prod
EXPOSE 8043
CMD ["npm", "run", "up:prod"]