ecliptica/Dockerfile

15 lines
297 B
Docker
Raw Permalink Normal View History

2023-08-01 13:14:02 +03:00
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
2023-08-01 13:15:12 +03:00
RUN npm i --only=prod
2023-08-01 13:14:02 +03:00
EXPOSE 8044
CMD ["npm", "run", "up:prod"]