Download Dockerfile from Corin1998/Invoice: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/spaces/Corin1998/Invoice/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Corin1998/Invoice/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Corin1998/Invoice/resolve/main/Dockerfile
321 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . /app | |
| # HF Spaces は $PORT を割り当ててくる | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "uvicorn main:app --host 0.0.0.0 --port $PORT"] | |