File size: 911 Bytes
640ab7a
 
 
8839d4e
 
 
640ab7a
 
9cd30ad
6226576
640ab7a
 
 
8839d4e
bd7b42b
8839d4e
 
640ab7a
f8922c6
cdccf5a
b59e56f
9c84146
 
e6f2aeb
9cd30ad
869e0a2
1c80b96
7912ea4
640ab7a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Node base image
FROM node:22.6-bullseye

WORKDIR $HOME
RUN ls -al

WORKDIR $HOME/app

RUN ls -al

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

# COPY .env $HOME/app/Chat_with_Avatar/.env

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

RUN --mount=type=secret,id=session_password,mode=0444,required=true \
cat /run/secrets/session_password > /app/Chat_with_Avatar/public/swp.txt && cat /app/Chat_with_Avatar/public/swp.txt

# change folder
WORKDIR $HOME/app/Chat_with_Avatar

RUN ls -al

RUN cat .env

# Loading Dependencies
RUN npm install

# RUN npm run dev

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"]