File size: 650 Bytes
2ef64da a7eca70 2ef64da 8fbaa59 2ef64da |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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"]
|