Spaces:
Sleeping
Sleeping
Download Dockerfile.dev from frkhan/bangla-ocr: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/spaces/frkhan/bangla-ocr/resolve/main/Dockerfile.dev
- Command line
-
hf download hf://spaces/frkhan/bangla-ocr/Dockerfile.dev
-
curl -L -o Dockerfile.dev https://huggingface.co/spaces/frkhan/bangla-ocr/resolve/main/Dockerfile.dev
661 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.10-slim-bookworm | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Prevent python from writing pyc files to disc and buffer logs | |
| ENV PYTHONDONTWRITEBYTECODE 1 | |
| ENV PYTHONUNBUFFERED 1 | |
| # Copy only the requirements file to leverage Docker cache | |
| # This is the layer that takes a long time, but it will be cached after the first build. | |
| COPY requirements.txt . | |
| # Install dependencies | |
| # Using --no-cache-dir reduces image size | |
| RUN pip install -r requirements.txt | |
| # Command to run the application | |
| # The CMD will run the app from the volume mounted by docker-compose | |
| CMD ["python", "app.py"] |