FROM python:3.10.6-slim

WORKDIR /app
COPY ./src /app
RUN pip install -r requirements.txt

COPY flag.txt /flag.txt
RUN chmod 444 /flag.txt

RUN adduser --system --no-create-home ctf
EXPOSE 5000

USER ctf
CMD ["python", "app.py"]