multy-stub/Dockerfile
2023-08-01 13:29:27 +03:00

15 lines
297 B
Docker

FROM 'node:18'
RUN mkdir -p /usr/src/app/server/
WORKDIR /usr/src/app/
COPY ./server /usr/src/app/server
COPY ./package.json /usr/src/app/package.json
COPY ./.serverrc.js /usr/src/app/.serverrc.js
# COPY ./.env /usr/src/app/.env
RUN npm i --only=prod
EXPOSE 8044
CMD ["npm", "run", "up:prod"]