chouchouvs commited on
Commit
2567d5f
·
verified ·
1 Parent(s): 6a18d72

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -1,22 +1,18 @@
1
- # ---- Dockerfile (runtime-clone pattern)
2
  FROM python:3.10-slim
3
 
4
- # System deps
5
  RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
- # A writable workspace for the runtime clone
9
- ENV WORKSPACE=/workspace
10
  RUN mkdir -p ${WORKSPACE}
11
  WORKDIR ${WORKSPACE}
12
 
13
- # Keep pip quiet + no cache
14
  ENV PIP_NO_CACHE_DIR=1 PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
15
 
16
- # Entrypoint script
17
  COPY entrypoint.sh /usr/local/bin/entrypoint.sh
18
  RUN chmod +x /usr/local/bin/entrypoint.sh
19
 
20
- # FastAPI runner
21
  EXPOSE 7860
22
  CMD ["/usr/local/bin/entrypoint.sh"]
 
1
+ # ---- Dockerfile
2
  FROM python:3.10-slim
3
 
 
4
  RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && \
5
  rm -rf /var/lib/apt/lists/*
6
 
7
+ # Writable workspace on HF Spaces
8
+ ENV WORKSPACE=/home/user/workspace
9
  RUN mkdir -p ${WORKSPACE}
10
  WORKDIR ${WORKSPACE}
11
 
 
12
  ENV PIP_NO_CACHE_DIR=1 PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
13
 
 
14
  COPY entrypoint.sh /usr/local/bin/entrypoint.sh
15
  RUN chmod +x /usr/local/bin/entrypoint.sh
16
 
 
17
  EXPOSE 7860
18
  CMD ["/usr/local/bin/entrypoint.sh"]