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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -11,12 +11,17 @@ RUN --mount=type=secret,id=GITHUB_REPO,required=true \
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"]
 
 
11
  # Install deps root
12
  RUN yarn install
13
 
14
+ # Build Nuxt static
15
+ RUN cd nuxt && yarn install --ignore-engines && yarn generate
16
+
17
+ # Set environment for HuggingFace
18
+ ENV PORT=7860
19
+ ENV HOST=0.0.0.0
20
 
21
  RUN chown -R node:node /app
22
  USER node
23
 
24
  EXPOSE 7860
25
 
26
+ # jalankan EXPRESS, bukan NUXT!!!
27
+ CMD ["node", "app.js"]