Spaces:
Sleeping
Sleeping
Download Dockerfile from FarelDeveloper/gradio: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/spaces/FarelDeveloper/gradio/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/FarelDeveloper/gradio/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/FarelDeveloper/gradio/resolve/main/Dockerfile
532 Bytes
| # Gunakan node image resmi sebagai base image | |
| FROM node:20-slim | |
| # Tentukan direktori kerja di dalam kontainer | |
| WORKDIR /app | |
| # Salin package.json dan package-lock.json terlebih dahulu | |
| COPY package*.json ./ | |
| # Install dependensi aplikasi | |
| RUN npm install --production | |
| # Salin seluruh sisa file source code ke dalam kontainer | |
| COPY . . | |
| # Set hak akses untuk folder kerja agar tidak terkendala isu permission di HF | |
| RUN chmod -R 777 /app | |
| # Port eksposur internal Hugging Face | |
| EXPOSE 7860 | |
| # Jalankan server Express | |
| CMD ["npm", "start"] |