Download Dockerfile from Leon4gr45/odoo: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/spaces/Leon4gr45/odoo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Leon4gr45/odoo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Leon4gr45/odoo/resolve/main/Dockerfile
442 Bytes
| FROM python:3.12-slim | |
| # Set environment variables | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 | |
| WORKDIR /app | |
| # Install FastAPI and Uvicorn | |
| RUN pip install --no-cache-dir fastapi uvicorn | |
| # Copy deployment files | |
| COPY app.py /app/app.py | |
| COPY README.md /app/README.md | |
| COPY Agent.md /app/Agent.md | |
| # Hugging Face Spaces port is 7860 | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |