Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
@@ -6,17 +6,15 @@ WORKDIR $HOME/app
|
|
6 |
# Clone HeyGen Github repository in app folder
|
7 |
RUN git clone https://github.com/mbarnig/Text_to_Avatar.git
|
8 |
|
9 |
-
|
|
|
10 |
|
11 |
# change folder
|
12 |
WORKDIR $HOME/app/Text_to_Avatar
|
13 |
-
RUN ls -a
|
14 |
|
15 |
# Loading Dependencies
|
16 |
RUN npm install
|
17 |
|
18 |
-
# RUN npm run dev
|
19 |
-
|
20 |
RUN npm run build
|
21 |
|
22 |
# Expose application's default port
|
|
|
6 |
# Clone HeyGen Github repository in app folder
|
7 |
RUN git clone https://github.com/mbarnig/Text_to_Avatar.git
|
8 |
|
9 |
+
RUN --mount=type=secret,id=my_apis,mode=0444,required=true \
|
10 |
+
cat /run/secrets/my_apis > /app/Text_to_Avatar/.env
|
11 |
|
12 |
# change folder
|
13 |
WORKDIR $HOME/app/Text_to_Avatar
|
|
|
14 |
|
15 |
# Loading Dependencies
|
16 |
RUN npm install
|
17 |
|
|
|
|
|
18 |
RUN npm run build
|
19 |
|
20 |
# Expose application's default port
|