2023-04-18 17:21:38 +03:00
|
|
|
FROM node:18.16.0-alpine as server
|
2023-01-27 14:12:04 +03:00
|
|
|
|
2023-04-09 17:43:43 +03:00
|
|
|
RUN apk update && apk upgrade && \
|
|
|
|
apk add --no-cache bash git openssh && \
|
|
|
|
apk add libc6-compat
|
|
|
|
|
2023-04-12 16:08:27 +03:00
|
|
|
WORKDIR /app/server
|
2023-01-27 14:12:04 +03:00
|
|
|
|
2023-04-18 17:17:01 +03:00
|
|
|
COPY ../../server/package.json .
|
|
|
|
COPY ../../server/package-lock.json .
|
2023-04-12 16:08:27 +03:00
|
|
|
RUN npm install
|
2023-04-24 18:10:50 +03:00
|
|
|
RUN npx prisma generate
|
|
|
|
|
2023-01-27 14:12:04 +03:00
|
|
|
|
2023-04-18 17:17:01 +03:00
|
|
|
COPY ../../server .
|
|
|
|
|
|
|
|
|
2023-04-24 15:50:48 +03:00
|
|
|
CMD ["npm", "run", "start:dev"]
|