mbarnig commited on
Commit
8839d4e
·
verified ·
1 Parent(s): 8c92a96

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  # Node base image
2
  FROM node:22.6-bullseye
3
 
 
 
 
4
  WORKDIR $HOME/app
5
 
6
  RUN ls -al
@@ -8,10 +11,10 @@ RUN ls -al
8
  # Clone HeyGen Github repository in app folder
9
  RUN git clone https://github.com/mbarnig/Chat_with_Avatar.git
10
 
11
- COPY .env $HOME/app/Chat_with_Avatar/.env
12
 
13
- # RUN --mount=type=secret,id=my_apis,mode=0444,required=true \
14
- # cat /run/secrets/my_apis > /app/Chat_with_Avatar/.env && cat /app/Chat_with_Avatar/.env
15
 
16
  RUN --mount=type=secret,id=session_password,mode=0444,required=true \
17
  cat /run/secrets/session_password > /app/Chat_with_Avatar/public/swp.txt && cat /app/Chat_with_Avatar/public/swp.txt
 
1
  # Node base image
2
  FROM node:22.6-bullseye
3
 
4
+ WORKDIR $HOME
5
+ RUN ls -al
6
+
7
  WORKDIR $HOME/app
8
 
9
  RUN ls -al
 
11
  # Clone HeyGen Github repository in app folder
12
  RUN git clone https://github.com/mbarnig/Chat_with_Avatar.git
13
 
14
+ # COPY .env $HOME/app/Chat_with_Avatar/.env
15
 
16
+ RUN --mount=type=secret,id=my_apis,mode=0444,required=true \
17
+ cat /run/secrets/my_apis > /app/Chat_with_Avatar/.env && cat /app/Chat_with_Avatar/.env
18
 
19
  RUN --mount=type=secret,id=session_password,mode=0444,required=true \
20
  cat /run/secrets/session_password > /app/Chat_with_Avatar/public/swp.txt && cat /app/Chat_with_Avatar/public/swp.txt