Skip to content

Commit 5d2a0f5

Browse files
committed
build(docker): update to apk, add deps and pip packages
1 parent 336bc11 commit 5d2a0f5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

examples/hf_demo_space/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ FROM python:3.13-alpine
55
WORKDIR /app
66

77
# Install required system dependencies
8-
RUN apt-get update && apt-get install -y \
8+
RUN apk update && apk add --no-cache \
99
curl \
1010
git \
11-
libpq-dev \
11+
postgresql-dev \
1212
gcc \
13-
&& rm -rf /var/lib/apt/lists/*
13+
musl-dev \
14+
linux-headers
1415

1516
# Create the /app/files directory and set full permissions
1617
RUN mkdir -p /app/.files && chmod 777 /app/.files
@@ -24,6 +25,8 @@ COPY . /app
2425

2526
# Upgrade pip and install dependencies
2627
RUN pip install --upgrade pip && \
28+
pip install portalocker==3.2.0 && \
29+
pip install docker==7.1.0 &&\
2730
pip install -r requirements.txt
2831

2932
EXPOSE 7860

0 commit comments

Comments
 (0)