mbarnig commited on
Commit
3ebcd86
1 Parent(s): be0b993

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -4,20 +4,17 @@ FROM node:22.6-bullseye
4
  WORKDIR $HOME/app
5
 
6
  # Clone HeyGen Github repository in app folder
7
- RUN git clone https://github.com/HeyGen-Official/InteractiveAvatarNextJSDemo.git
8
 
9
- COPY .env $HOME/app/InteractiveAvatarNextJSDemo/.env
10
- COPY package.json $HOME/app/InteractiveAvatarNextJSDemo/package.json
11
 
12
  # change folder
13
- WORKDIR $HOME/app/InteractiveAvatarNextJSDemo
14
- RUN ls -a
15
 
16
  # Loading Dependencies
17
  RUN npm install
18
 
19
- # RUN npm run dev
20
-
21
  RUN npm run build
22
 
23
  # Expose application's default port
@@ -27,5 +24,4 @@ EXPOSE 7860
27
  # ENTRYPOINT ["npm", "run", "start"]
28
 
29
  # Command to start the application
30
- CMD ["npm", "run", "start"]
31
- # CMD ["--host", "0.0.0.0", "--port", "7860"]
 
4
  WORKDIR $HOME/app
5
 
6
  # Clone HeyGen Github repository in app folder
7
+ RUN git clone https://github.com/mbarnig/InteractiveAvatarNextJSDemo.git
8
 
9
+ RUN --mount=type=secret,id=my_apis,mode=0444,required=true \
10
+ cat /run/secrets/my_apis > /app/Chat_with_Avatar/.env && cat /app/Chat_with_Avatar/.env
11
 
12
  # change folder
13
+ WORKDIR $HOME/app/Chat_with_Avatar
 
14
 
15
  # Loading Dependencies
16
  RUN npm install
17
 
 
 
18
  RUN npm run build
19
 
20
  # Expose application's default port
 
24
  # ENTRYPOINT ["npm", "run", "start"]
25
 
26
  # Command to start the application
27
+ CMD ["npm", "run", "start"]