File size: 594 Bytes
590fc78
e5ed38b
590fc78
 
 
9c7b360
17b78e4
7a5937e
3ebcd86
17b78e4
590fc78
e5ed38b
17b78e4
590fc78
 
 
 
b17dd27
 
c9e9149
 
 
7ab3706
6a0b17e
7ab3706
590fc78
3ebcd86
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Node base image
FROM node:22.6-bullseye

WORKDIR $HOME/app

# Clone HeyGen Github repository in app folder
RUN git clone https://github.com/mbarnig/InteractiveAvatarNextJSDemo.git

RUN --mount=type=secret,id=my_apis,mode=0444,required=true \
cat /run/secrets/my_apis > /app/InteractiveAvatarNextJSDemo/.env

# change folder
WORKDIR $HOME/app/InteractiveAvatarNextJSDemo

# Loading Dependencies
RUN npm install

RUN npm run build

# Expose application's default port
EXPOSE 7860

# Entrypoint
# ENTRYPOINT ["npm", "run", "start"]

# Command to start the application
CMD ["npm", "run", "start"]