Spaces:
Paused
Paused
Download Dockerfile from Bsweb1/image-proxy: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/spaces/Bsweb1/image-proxy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Bsweb1/image-proxy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Bsweb1/image-proxy/resolve/main/Dockerfile
470 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Instalar dependências do sistema para Pillow | |
| RUN apt-get update && apt-get install -y \ | |
| libjpeg-dev \ | |
| zlib1g-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| # Instalar dependências Python | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Expor a porta que o Uvicorn usará | |
| EXPOSE 7860 | |
| # Comando para iniciar o servidor | |
| CMD ["uvicorn", "app:get_app", "--host", "0.0.0.0", "--port", "7860"] |