bep40 commited on
Commit
9e7bfd9
·
verified ·
1 Parent(s): 8424baa

Fix Space startup: use sh instead of missing bash

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -15,7 +15,7 @@ FROM python:3.12-slim
15
  COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
16
  RUN useradd -m -u 1000 user
17
  WORKDIR /app
18
- RUN apt-get update && apt-get install -y --no-install-recommends git curl && rm -rf /var/lib/apt/lists/*
19
 
20
  RUN git clone --depth 1 https://huggingface.co/spaces/smolagents/ml-intern /tmp/source && \
21
  cp /tmp/source/pyproject.toml /tmp/source/uv.lock ./ && \
@@ -43,4 +43,5 @@ ENV HOME=/home/user \
43
 
44
  EXPOSE 7860
45
  WORKDIR /app/backend
46
- CMD ["bash", "start.sh"]
 
 
15
  COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
16
  RUN useradd -m -u 1000 user
17
  WORKDIR /app
18
+ RUN apt-get update && apt-get install -y --no-install-recommends git curl ca-certificates && rm -rf /var/lib/apt/lists/*
19
 
20
  RUN git clone --depth 1 https://huggingface.co/spaces/smolagents/ml-intern /tmp/source && \
21
  cp /tmp/source/pyproject.toml /tmp/source/uv.lock ./ && \
 
43
 
44
  EXPOSE 7860
45
  WORKDIR /app/backend
46
+ # python:slim does not include bash by default; start.sh is POSIX-compatible.
47
+ CMD ["sh", "start.sh"]