Spaces:
Build error
Build error
Download Dockerfile from mbarnig/text2avatar_flex: direct link, hf CLI and curl.
- Browser
- Download file 561 Bytes
-
https://huggingface.co/spaces/mbarnig/text2avatar_flex/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mbarnig/text2avatar_flex/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mbarnig/text2avatar_flex/resolve/main/Dockerfile
561 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/text2avatar-flex.git | |
| RUN --mount=type=secret,id=my_apis,mode=0444,required=true \ | |
| cat /run/secrets/my_apis > /app/text2avatar-flex/.env | |
| # change folder | |
| WORKDIR $HOME/app/text2avatar-flex | |
| # 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"] |