CoolFace
Apppublic

mbarnig/text2avatar_flex

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
Dockerfile27 linesDownload Raw Back to root
1# Node base image2FROM node:22.6-bullseye3 4WORKDIR $HOME/app5 6# Clone HeyGen Github repository in app folder7RUN git clone https://github.com/mbarnig/text2avatar-flex.git8 9RUN --mount=type=secret,id=my_apis,mode=0444,required=true \10cat /run/secrets/my_apis > /app/text2avatar-flex/.env11 12# change folder13WORKDIR $HOME/app/text2avatar-flex14 15# Loading Dependencies16RUN npm install17 18RUN npm run build19 20# Expose application's default port21EXPOSE 786022 23# Entrypoint24# ENTRYPOINT ["npm", "run", "start"]25 26# Command to start the application27CMD ["npm", "run", "start"]