mbarnig commited on
Commit
78b3888
·
verified ·
1 Parent(s): 001f811

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -17
Dockerfile CHANGED
@@ -1,36 +1,20 @@
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
10
-
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
21
 
22
  # change folder
23
  WORKDIR $HOME/app/Chat_with_Avatar
24
 
25
- RUN ls -al
26
-
27
- RUN cat .env
28
-
29
  # Loading Dependencies
30
  RUN npm install
31
 
32
- # RUN npm run dev
33
-
34
  RUN npm run build
35
 
36
  # Expose application's default port
 
1
  # Node base image
2
  FROM node:22.6-bullseye
3
 
 
 
 
4
  WORKDIR $HOME/app
5
 
 
 
6
  # Clone HeyGen Github repository in app folder
7
  RUN git clone https://github.com/mbarnig/Chat_with_Avatar.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
 
 
 
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