Spaces:
Paused
Paused
Download Dockerfile from BPEL/otree-server: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/spaces/BPEL/otree-server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/BPEL/otree-server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BPEL/otree-server/resolve/main/Dockerfile
684 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends build-essential \ | |
| && pip install --no-cache-dir -r requirements.txt \ | |
| && apt-get purge -y build-essential \ | |
| && apt-get autoremove -y \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY . /app | |
| ENV OTREE_PRODUCTION=1 \ | |
| OTREE_ADMIN_PASSWORD=changeme \ | |
| OTREE_DATABASE_URL=sqlite:////tmp/otree.sqlite3 \ | |
| PYTHONPATH=/app | |
| COPY docker-entrypoint.sh /app/entrypoint.sh | |
| RUN chmod +x /app/entrypoint.sh | |
| EXPOSE 8000 | |
| CMD ["/app/entrypoint.sh"] | |