ken4 commited on
Commit
ee27f64
·
verified ·
1 Parent(s): 87f2526

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -8,19 +8,20 @@ WORKDIR /app
8
  RUN --mount=type=secret,id=GITHUB_REPO,required=true \
9
  git clone $(cat /run/secrets/GITHUB_REPO) /app
10
 
11
- # Install deps Express + Nuxt
12
  RUN npm install
13
 
14
- # Build Nuxt
15
  WORKDIR /app/nuxt
16
  RUN npm install
17
  RUN npm run build
 
18
 
19
- # Kembali ke root
20
  WORKDIR /app
21
 
22
  # Expose port Express
23
  EXPOSE 7860
24
 
25
- # Start Express (bukan nuxt)
26
  CMD ["node", "app.js"]
 
8
  RUN --mount=type=secret,id=GITHUB_REPO,required=true \
9
  git clone $(cat /run/secrets/GITHUB_REPO) /app
10
 
11
+ # Install dependencies untuk Express + tools lain
12
  RUN npm install
13
 
14
+ # --- BUILD NUXT STATIC ---
15
  WORKDIR /app/nuxt
16
  RUN npm install
17
  RUN npm run build
18
+ RUN npm run generate
19
 
20
+ # Kembali ke root project (Express)
21
  WORKDIR /app
22
 
23
  # Expose port Express
24
  EXPOSE 7860
25
 
26
+ # Jalankan Express server
27
  CMD ["node", "app.js"]