Zion Boggan zionboggan.com ↗
25 lines · text
History for this file →
1
FROM python:3.11-slim
2
 
3
ENV PYTHONDONTWRITEBYTECODE=1 \
4
    PYTHONUNBUFFERED=1 \
5
    PYTHONPATH=/app/src
6
 
7
WORKDIR /app
8
 
9
RUN useradd --create-home --uid 10001 cti
10
 
11
COPY requirements.txt .
12
RUN pip install --no-cache-dir -r requirements.txt
13
 
14
COPY src/ src/
15
COPY templates/ templates/
16
COPY fixtures/ fixtures/
17
COPY config.example.yaml .
18
 
19
RUN mkdir -p output && chown -R cti:cti /app
20
 
21
USER cti
22
 
23
EXPOSE 8080
24
 
25
ENTRYPOINT ["gunicorn", "--bind", "0.0.0.0:8080", "--workers", "2", "cti.web:app"]