- Add Dockerfile, docker-compose.yml, .dockerignore (Issue #11) - Add nginx config with CSP, HSTS, X-Frame-Options, X-Content-Type-Options headers (Issue #14) - Hide server version via server_tokens off, strip x-response-time-ms (Issues #21, #22) - Replace sys.path.insert with proper src.* imports + importlib fallback (Issue #7) - Add config.json.example template (Issue #5)
16 lines
282 B
Docker
16 lines
282 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
RUN pip install --no-cache-dir -e .
|
|
|
|
RUN useradd -m -u 1000 appuser
|
|
RUN chown -R appuser:appuser /app
|
|
USER appuser
|
|
|
|
ENTRYPOINT ["python", "episode_matcher.py"]
|