ken4 commited on
Commit
d3f987e
·
verified ·
1 Parent(s): f9dbcd7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -11
Dockerfile CHANGED
@@ -9,19 +9,10 @@ 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"]
 
9
  git clone $(cat /run/secrets/GITHUB_REPO) /app
10
 
11
  # Install dependencies untuk Express + tools lain
12
+ RUN yarn install && yarn run build
 
 
 
 
 
 
 
 
 
13
 
14
  # Expose port Express
15
  EXPOSE 7860
16
 
17
  # Jalankan Express server
18
+ CMD ["yarn", "start"]