Dockerfile (897B)
1 FROM python:3.11-slim 2 3 # Install system audio, compression, and imaging tools found in install.sh and server.py 4 RUN apt-get update && apt-get install -y --no-install-recommends \ 5 wget \ 6 zip \ 7 unzip \ 8 ffmpeg \ 9 sox \ 10 mediainfo \ 11 libmagic1 \ 12 && rm -rf /var/lib/apt/lists/* 13 14 WORKDIR /app 15 16 # Copy the dependencies directly 17 COPY webpy-v.0.76.zip /tmp/ 18 19 # Install exact application requirements 20 RUN pip install --no-cache-dir /tmp/webpy-v.0.76.zip mutagen pillow markdown requests 21 22 # Copy source repository structure 23 COPY . /app 24 25 # Ensure required runfirst directories exist with proper access bounds 26 RUN mkdir -p p/posts p/zipped p/comborank p/heartrank p/deleted u/ r/visitors r/invites r/trusted r/users r/stopflood r/stopresetpass sessions 27 28 # Expose web.py's standard fallback port 29 EXPOSE 8080 30 31 # Run standalone server framework natively 32 CMD ["python3", "server.py"]