Spaces:
Paused
Paused
| 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"] | |