Files
msa-django-nhn/Dockerfile
icurfer 2b3146288d
Some checks failed
Build And Test / build-and-push (push) Failing after 38s
Add request logging middleware for pod log visibility
- Add gunicorn access/error log options to Dockerfile
- Create RequestLoggingMiddleware for detailed request logging
- Log request method, path, host, IP, NHN headers, response status, duration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 09:42:47 +09:00

23 lines
567 B
Docker

FROM harbor.icurfer.com/open/python:3.10-slim-bullseye
WORKDIR /usr/src/app
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y \
gcc \
pkg-config \
default-libmysqlclient-dev \
python-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["gunicorn", "--workers=3", "--bind=0.0.0.0:8000", "--access-logfile=-", "--error-logfile=-", "--capture-output", "--log-level=info", "nhn_prj.wsgi:application"]