Chat_with_Avatar / Dockerfile
mbarnig's picture
Update Dockerfile
6b4bfa2 verified
raw
history blame
798 Bytes
# 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/Chat_with_Avatar.git
COPY .env $HOME/app/Chat_with_Avatar/.env
WORKDIR $HOME/app/Chat_with_Avatar
RUN --mount=type=secret,id=session_password,mode=0444,required=true \
# cat /run/secrets/session_password > /test && cat /test
cat /run/secrets/session_password > test && cat test
# change folder
# WORKDIR $HOME/app/Chat_with_Avatar
# COPY /test $HOME/app/Chat_with_Avatarpublic/test
RUN ls -a
# 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"]