We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 336bc11 commit 5d2a0f5Copy full SHA for 5d2a0f5
examples/hf_demo_space/Dockerfile
@@ -5,12 +5,13 @@ FROM python:3.13-alpine
5
WORKDIR /app
6
7
# Install required system dependencies
8
-RUN apt-get update && apt-get install -y \
+RUN apk update && apk add --no-cache \
9
curl \
10
git \
11
- libpq-dev \
+ postgresql-dev \
12
gcc \
13
- && rm -rf /var/lib/apt/lists/*
+ musl-dev \
14
+ linux-headers
15
16
# Create the /app/files directory and set full permissions
17
RUN mkdir -p /app/.files && chmod 777 /app/.files
@@ -24,6 +25,8 @@ COPY . /app
24
25
26
# Upgrade pip and install dependencies
27
RUN pip install --upgrade pip && \
28
+ pip install portalocker==3.2.0 && \
29
+ pip install docker==7.1.0 &&\
30
pip install -r requirements.txt
31
32
EXPOSE 7860
0 commit comments