frank0957's picture
Update Dockerfile
334046f verified
Raw
History Blame Contribute Delete
944 Bytes
FROM python:3.11-slim
WORKDIR /app
# ── Install system dependencies ────────────────────
# curl: useful for health checks and debugging
# git: required by backup.sh to push data to GitHub
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# ── Python dependencies ───────────────────────────
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ── Copy application code ─────────────────────────
COPY . .
# ── Ensure startup scripts are executable ─────────
RUN chmod +x startup.sh
RUN chmod +x backup.sh
# ── Create wiki directory ─────────────────────────
RUN mkdir -p wiki
EXPOSE 7860
CMD ["./startup.sh"]