Spaces:
Sleeping
Sleeping
Download Dockerfile from albertoakel/Dash_apps_docker_vs: direct link, hf CLI and curl.
- Browser
- Download file 621 Bytes
-
https://huggingface.co/spaces/albertoakel/Dash_apps_docker_vs/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/albertoakel/Dash_apps_docker_vs/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/albertoakel/Dash_apps_docker_vs/resolve/main/Dockerfile
621 Bytes
| FROM python:3.10-slim | |
| # Evita prompts | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Dependências do sistema (GEOPANDAS + FOLIUM) | |
| RUN apt-get update && apt-get install -y \ | |
| gdal-bin \ | |
| libgdal-dev \ | |
| libproj-dev \ | |
| proj-data \ | |
| proj-bin \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Diretório de trabalho | |
| WORKDIR /app | |
| # Copiar arquivos | |
| COPY . /app | |
| # Instalar dependências Python | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Porta padrão do Spaces | |
| EXPOSE 7860 | |
| # Comando de inicialização | |
| CMD ["gunicorn", "app_04:server", "--bind", "0.0.0.0:7860", "--workers", "1"] | |