mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
19 lines
359 B
Docker
19 lines
359 B
Docker
FROM python:3.14-slim
|
|
|
|
WORKDIR /build
|
|
|
|
# Copy gunicorn source
|
|
COPY . /build/
|
|
|
|
# Install gunicorn from source
|
|
RUN pip install --no-cache-dir -e .
|
|
|
|
# Copy test app
|
|
WORKDIR /app
|
|
COPY tests/docker/test_asgi_uwsgi/app.py /app/
|
|
|
|
# Expose uWSGI port
|
|
EXPOSE 8000
|
|
|
|
CMD ["gunicorn", "--worker-class", "asgi", "--protocol", "uwsgi", "--bind", "0.0.0.0:8000", "app:app"]
|