meme / Dockerfile
qwqcc's picture
Upload 4 files
a7eca70 verified
raw
history blame contribute delete
650 Bytes
FROM ghcr.io/1111qwq1111/meme-generator:latest
# Hugging Face Spaces expects the app to listen on $PORT (default 7860)
ENV PORT=7860
EXPOSE 7860
WORKDIR /workspace
# Ensure Python and minimal runtime deps for bootstrap
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 python3-pip \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install --no-cache-dir httpx
COPY space_boot.sh /workspace/space_boot.sh
COPY bootstrap.py /workspace/bootstrap.py
RUN chmod +x /workspace/space_boot.sh
# Prefer our wrapper script to ensure port/env compatibility on Spaces
ENTRYPOINT ["/bin/bash", "-lc", "/workspace/space_boot.sh"]