# Dockerfile for deploying the Flask ntfy-like server (exposes 8080) FROM python:3.11-slim ENV PYTHONUNBUFFERED=1 ENV PORT=8080 ENV DATA_DIR=/data RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ && rm -rf /var/lib/apt/lists/* WORKDIR /srv/ntfy_flask COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app.py . # ensure data dirs RUN mkdir -p /data/attachments VOLUME ["/data"] EXPOSE 8080 CMD ["python", "app.py"]