Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +27 -0
Dockerfile
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/InteractiveAvatarNextJSDemo.git
|
8 |
+
|
9 |
+
RUN --mount=type=secret,id=my_apis,mode=0444,required=true \
|
10 |
+
cat /run/secrets/my_apis > /app/InteractiveAvatarNextJSDemo/.env
|
11 |
+
|
12 |
+
# change folder
|
13 |
+
WORKDIR $HOME/app/InteractiveAvatarNextJSDemo
|
14 |
+
|
15 |
+
# Loading Dependencies
|
16 |
+
RUN npm install
|
17 |
+
|
18 |
+
RUN npm run build
|
19 |
+
|
20 |
+
# Expose application's default port
|
21 |
+
EXPOSE 7860
|
22 |
+
|
23 |
+
# Entrypoint
|
24 |
+
# ENTRYPOINT ["npm", "run", "start"]
|
25 |
+
|
26 |
+
# Command to start the application
|
27 |
+
CMD ["npm", "run", "start"]
|