multy-stub/Dockerfile

17 lines
363 B
Docker
Raw Normal View History

2024-05-19 20:50:15 +03:00
FROM node:18
2023-08-01 13:14:02 +03:00
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
2024-05-19 20:50:15 +03:00
COPY ./package-lock.json /usr/src/app/package-lock.json
2023-08-01 13:14:02 +03:00
COPY ./.serverrc.js /usr/src/app/.serverrc.js
# COPY ./.env /usr/src/app/.env
2024-05-19 20:50:15 +03:00
# RUN npm i --omit=dev
RUN npm ci
2023-08-01 13:14:02 +03:00
EXPOSE 8044
CMD ["npm", "run", "up:prod"]