1 |
rakinar2 |
577 |
FROM node:21-alpine |
2 |
|
|
|
3 |
|
|
WORKDIR /app |
4 |
|
|
|
5 |
|
|
RUN apk add --no-cache python3 build-base g++ cairo-dev jpeg-dev pango-dev giflib-dev |
6 |
|
|
|
7 |
|
|
COPY .env.docke[r] ./.env |
8 |
|
|
COPY package.json . |
9 |
|
|
RUN npm install -D |
10 |
|
|
|
11 |
|
|
COPY tsconfig.json . |
12 |
|
|
COPY src ./src |
13 |
|
|
COPY prisma ./prisma |
14 |
|
|
COPY resources ./resources |
15 |
|
|
COPY ecosystem.config.js . |
16 |
|
|
|
17 |
|
|
RUN npx prisma generate |
18 |
|
|
RUN npm run build |
19 |
|
|
|
20 |
|
|
# -- Uncomment the following line if you want a smaller image size |
21 |
|
|
# RUN npm prune --production |
22 |
|
|
|
23 |
|
|
EXPOSE 4000 |
24 |
|
|
CMD ["npm", "run", "start:prod", "--", "--no-daemon"] |