-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Dockerfile
37 lines (29 loc) · 1 KB
/
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
35
36
37
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
COPY scripts ./scripts
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 --from=0 /app/tsconfig.json ./tsconfig.json
COPY --from=0 /app/scripts ./scripts
COPY drizzle ./drizzle
COPY docker ./docker
COPY ecosystem.config.js ./ecosystem.config.js
EXPOSE 4000
CMD ["npm", "run", "start:docker"]