ken4 commited on
Commit
b2954cd
·
verified ·
1 Parent(s): 05671a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -8,16 +8,15 @@ WORKDIR /app
8
  RUN --mount=type=secret,id=GITHUB_REPO,required=true \
9
  git clone $(cat /run/secrets/GITHUB_REPO) /app
10
 
11
- # Install dependencies untuk root project
12
  RUN yarn install
13
 
14
- # Build Nuxt (pakai yarn di folder nuxt)
15
- RUN cd nuxt && yarn install --ignore-engines && yarn generate
16
 
17
- # Setizinan supaya user node bisa jalanin app
18
  RUN chown -R node:node /app
19
  USER node
20
 
21
  EXPOSE 7860
22
 
23
- CMD ["yarn", "start"]
 
8
  RUN --mount=type=secret,id=GITHUB_REPO,required=true \
9
  git clone $(cat /run/secrets/GITHUB_REPO) /app
10
 
11
+ # Install deps root
12
  RUN yarn install
13
 
14
+ # Build Nuxt (server mode)
15
+ RUN cd nuxt && yarn install --ignore-engines && yarn build
16
 
 
17
  RUN chown -R node:node /app
18
  USER node
19
 
20
  EXPOSE 7860
21
 
22
+ CMD ["node", "nuxt/.output/server/index.mjs"]