2023-04-18 17:21:38 +03:00
|
|
|
FROM node:18.16.0-alpine as front
|
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 && \
|
2023-04-26 10:53:11 +03:00
|
|
|
apk add libc6-compat && \
|
|
|
|
apk add python3 && \
|
|
|
|
apk add make && \
|
2023-04-25 18:25:30 +03:00
|
|
|
apk add g++
|
2023-04-09 17:43:43 +03:00
|
|
|
|
2023-04-12 16:08:27 +03:00
|
|
|
WORKDIR /app/front
|
2023-01-27 14:12:04 +03:00
|
|
|
|
2023-04-18 17:17:01 +03:00
|
|
|
COPY ../../front/package.json .
|
|
|
|
COPY ../../front/package-lock.json .
|
2023-04-12 16:08:27 +03:00
|
|
|
RUN npm install
|
2023-01-27 14:12:04 +03:00
|
|
|
|
2023-05-25 16:56:28 +03:00
|
|
|
WORKDIR /app/server
|
|
|
|
|
|
|
|
COPY ../../server/package.json .
|
|
|
|
COPY ../../server/package-lock.json .
|
|
|
|
RUN npm install
|
|
|
|
|
2023-05-25 17:58:33 +03:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY ../.. .
|
|
|
|
|
|
|
|
WORKDIR /app/server
|
2023-05-25 16:56:28 +03:00
|
|
|
RUN npx prisma generate
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
CMD ["tail", "-f", "/dev/null"]
|