coyotte508 HF staff commited on
Commit
f177e4b
1 Parent(s): cad5ba6

Simpler dockerfile (#126)

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -8
  2. README.md +1 -0
Dockerfile CHANGED
@@ -7,16 +7,10 @@ RUN npm install -g pm2
7
 
8
  WORKDIR /app
9
 
10
- COPY . .
11
 
12
  RUN npm i
13
 
14
- RUN chown -R 1000:1000 /app
15
-
16
- RUN --mount=type=secret,id=DOTENV_LOCAL,mode=0444,required=true cat /run/secrets/DOTENV_LOCAL > .env.local
17
-
18
- RUN npm run build
19
-
20
- ENV PORT 7860
21
 
22
  CMD pm2 start build/index.js -i $CPU_CORES --no-daemon
 
7
 
8
  WORKDIR /app
9
 
10
+ COPY --link --chown=1000 . .
11
 
12
  RUN npm i
13
 
14
+ RUN --mount=type=secret,id=DOTENV_LOCAL,dst=.env.local npm run build
 
 
 
 
 
 
15
 
16
  CMD pm2 start build/index.js -i $CPU_CORES --no-daemon
README.md CHANGED
@@ -7,6 +7,7 @@ sdk: docker
7
  pinned: false
8
  license: apache-2.0
9
  base_path: /chat
 
10
  ---
11
 
12
  # Chat UI
 
7
  pinned: false
8
  license: apache-2.0
9
  base_path: /chat
10
+ app_port: 3000
11
  ---
12
 
13
  # Chat UI