Spaces:
Running
Running
Download Dockerfile from comfyuiman/loracaptionertaz: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/comfyuiman/loracaptionertaz/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/comfyuiman/loracaptionertaz/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/comfyuiman/loracaptionertaz/resolve/main/Dockerfile
478 Bytes
| # CHANGED: Updated to Node 20 to support @google/genai | |
| FROM node:20-alpine | |
| # Set working directory | |
| WORKDIR /app | |
| # 1. Install dependencies | |
| COPY package.json package-lock.json* ./ | |
| RUN npm install | |
| # 2. Copy app files | |
| COPY . . | |
| # 3. Build the app | |
| RUN npm run build | |
| # 4. Fix Permissions for Hugging Face | |
| RUN chown -R node:node /app | |
| # 5. Switch User | |
| USER node | |
| # 6. Expose Port | |
| EXPOSE 7860 | |
| # 7. Start Command | |
| CMD ["npx", "vite", "preview", "--host", "0.0.0.0", "--port", "7860"] |