red-coder-bh/Dockerfile

14 lines
249 B
Docker

FROM 'node:14'
RUN mkdir -p /usr/src/app/dist/
WORKDIR /usr/src/app/
COPY ./dist /usr/src/app/dist
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"]