heart2heart/deploy/Dockerfile

18 lines
326 B
Docker
Raw Normal View History

2024-08-03 03:48:20 +03:00
FROM node:20.10.0
WORKDIR /usr/src/app
COPY package.json ./package.json
COPY package-lock.json ./package-lock.json
RUN npm i
2024-08-10 16:20:53 +03:00
RUN apt update && apt install -y postgresql-client
2024-08-03 03:48:20 +03:00
2024-08-08 16:08:36 +03:00
RUN mkdir src
2024-08-10 16:20:53 +03:00
RUN mkdir translations
2024-08-08 16:08:36 +03:00
COPY src src
COPY scheme.psql .
2024-08-10 16:20:53 +03:00
COPY cities.sql .
COPY translations translations
2024-08-08 16:08:36 +03:00
2024-08-03 03:48:20 +03:00
CMD ["npm", "run" ,"start"]