/[sudobot]/trunk/Dockerfile
ViewVC logotype

Diff of /trunk/Dockerfile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 355 by rakin, Mon Jul 29 17:29:45 2024 UTC revision 572 by rakinar2, Mon Jul 29 17:51:37 2024 UTC
# Line 1  Line 1 
1  FROM node:18-buster  FROM node:22-bookworm
2  RUN apt update && apt upgrade -y  
3  WORKDIR /app  WORKDIR /app
4  COPY . .  
5  RUN npm install -D  RUN apt-get update
6  RUN npm run build  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
7  COPY . .  
8  COPY ./config /app/config  COPY package.json ./package.json
9  CMD ["npm", "run", "start:node"]  COPY tsconfig.json ./tsconfig.json
10    COPY src ./src
11    COPY blazew ./blazew
12    COPY blaze ./blaze
13    COPY blazebuild ./blazebuild
14    COPY build.blaze.ts ./build.blaze.ts
15    COPY build_src ./build_src
16    COPY eslint.config.mjs ./eslint.config.mjs
17    COPY vitest.config.mjs ./vitest.config.mjs
18    COPY tests ./tests
19    
20    RUN ./blazew build
21    
22    FROM node:22-alpine
23    
24    WORKDIR /app
25    
26    COPY --from=0 /app/node_modules ./node_modules
27    COPY --from=0 /app/build ./build
28    COPY --from=0 /app/package.json ./package.json
29    COPY ecosystem.config.js ./ecosystem.config.js
30    COPY .env.docke[r] ./.env
31    COPY config ./config
32    
33  EXPOSE 4000  EXPOSE 4000
34    CMD ["npm", "run", "start:prod", "--", "--no-daemon"]

Legend:
Removed from v.355  
changed lines
  Added in v.572

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26