multy-stub/Dockerfile

15 lines
298 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 ci --only=prod
EXPOSE 8044
CMD ["npm", "run", "up:prod"]