-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
34 lines (26 loc) · 937 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM node:22-bookworm
WORKDIR /app
RUN apt-get update
RUN apt-get install git build-essential librsvg2-dev libgif-dev giflib-tools libcurl4 libcurl4-gnutls-dev libgtk-3-dev libpango1.0-dev libpng-dev libpng++-dev libpng-tools libjpeg-tools libjpeg-progs libjpeg-dev -y
COPY package.json ./package.json
COPY tsconfig.json ./tsconfig.json
COPY src ./src
COPY blazew ./blazew
COPY blaze ./blaze
COPY blazebuild ./blazebuild
COPY build.blaze.ts ./build.blaze.ts
COPY build_src ./build_src
COPY eslint.config.mjs ./eslint.config.mjs
COPY vitest.config.mjs ./vitest.config.mjs
COPY tests ./tests
RUN ./blazew build
FROM node:22-alpine
WORKDIR /app
COPY --from=0 /app/node_modules ./node_modules
COPY --from=0 /app/build ./build
COPY --from=0 /app/package.json ./package.json
COPY ecosystem.config.js ./ecosystem.config.js
COPY .env.docke[r] ./.env
COPY config ./config
EXPOSE 4000
CMD ["npm", "run", "start:prod", "--", "--no-daemon"]