My_Interactive_Avatar / Dockerfile
mbarnig's picture
Update Dockerfile
17b78e4 verified
raw
history blame contribute delete
594 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/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"]