ctfast / Dockerfile
Emirinth's picture
Deploy CTFast (part 2)
492fb81 verified
Raw History Blame Contribute Delete
354 Bytes
FROM python:3.13-slim
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH \
CTFAST_ARTIFACTS=/home/user/app/artifacts
WORKDIR /home/user/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir --user -r requirements.txt
COPY --chown=user . .
CMD ["python", "app.py", "--port", "7860"]