Spaces:
Build error
Build error
Download Dockerfile from Muhammadidrees/HealAvatar: direct link, hf CLI and curl.
- Browser
- Download file 671 Bytes
-
https://huggingface.co/spaces/Muhammadidrees/HealAvatar/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Muhammadidrees/HealAvatar/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Muhammadidrees/HealAvatar/resolve/main/Dockerfile
671 Bytes
| FROM nikolaik/python-nodejs:python3.10-nodejs20 | |
| # Install OS dependencies | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| # Set working directory | |
| WORKDIR /app | |
| # --- Backend dependencies --- | |
| COPY apps/backend/package*.json ./apps/backend/ | |
| WORKDIR /app/apps/backend | |
| RUN npm install | |
| RUN pip install edge-tts | |
| # --- Frontend dependencies --- | |
| COPY apps/frontend/package*.json ./apps/frontend/ | |
| WORKDIR /app/apps/frontend | |
| RUN npm install | |
| # --- Copy all source code --- | |
| WORKDIR /app | |
| COPY . . | |
| # --- Build frontend --- | |
| WORKDIR /app/apps/frontend | |
| RUN npm run build | |
| # --- Expose port --- | |
| EXPOSE 3000 | |
| # --- Start backend --- | |
| WORKDIR /app/apps/backend | |
| CMD ["node", "server.js"] | |