| 12345678910111213141516171819202122232425262728 |
- FROM python:3.11-slim AS runtime
- ENV PYTHONDONTWRITEBYTECODE=1 \
- PYTHONUNBUFFERED=1 \
- APP_DIR=/app
- WORKDIR /app
- RUN apt-get update \
- && apt-get install --no-install-recommends -y \
- gcc \
- libc6-dev \
- libgomp1 \
- linux-libc-dev \
- && rm -rf /var/lib/apt/lists/*
- COPY requirements.txt ./requirements.txt
- RUN pip install --no-cache-dir -r requirements.txt \
- && pip uninstall -y alembic \
- && apt-get purge -y gcc libc6-dev linux-libc-dev \
- && apt-get autoremove -y \
- && rm -rf /var/lib/apt/lists/*
- COPY app/ ./app/
- EXPOSE 5600
- CMD ["gunicorn", "--config", "app/runner/gunicorn_config.py", "app.runner.wsgi:application"]
|