qwqcc commited on
Commit
8fbaa59
·
verified ·
1 Parent(s): 6f03778

Upload 4 files

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -1,11 +1,17 @@
1
  FROM ghcr.io/1111qwq1111/meme-generator:latest
2
 
3
- # Hugging Face Spaces expects the app to listen on $PORT (default 7860)
4
  ENV PORT=2233
5
  EXPOSE 2233
6
 
7
  WORKDIR /workspace
8
 
 
 
 
 
 
 
9
  COPY space_boot.sh /workspace/space_boot.sh
10
  COPY bootstrap.py /workspace/bootstrap.py
11
  RUN chmod +x /workspace/space_boot.sh
 
1
  FROM ghcr.io/1111qwq1111/meme-generator:latest
2
 
3
+ # Hugging Face Spaces expects the app to listen on $PORT (default 2233)
4
  ENV PORT=2233
5
  EXPOSE 2233
6
 
7
  WORKDIR /workspace
8
 
9
+ # Ensure Python and minimal runtime deps for bootstrap
10
+ RUN apt-get update \
11
+ && apt-get install -y --no-install-recommends python3 python3-pip \
12
+ && rm -rf /var/lib/apt/lists/* \
13
+ && pip3 install --no-cache-dir httpx
14
+
15
  COPY space_boot.sh /workspace/space_boot.sh
16
  COPY bootstrap.py /workspace/bootstrap.py
17
  RUN chmod +x /workspace/space_boot.sh