slim
Browse files- Dockerfile +5 -20
Dockerfile
CHANGED
|
@@ -1,28 +1,13 @@
|
|
| 1 |
-
|
| 2 |
-
FROM python:3.10-bookworm
|
| 3 |
|
| 4 |
-
|
| 5 |
-
WORKDIR /home/user/app
|
| 6 |
|
| 7 |
-
# Install
|
| 8 |
-
RUN apt-get update && apt-get install -y \
|
| 9 |
-
git \
|
| 10 |
-
git-lfs \
|
| 11 |
-
ffmpeg \
|
| 12 |
-
libsm6 \
|
| 13 |
-
libxext6 \
|
| 14 |
-
cmake \
|
| 15 |
-
rsync \
|
| 16 |
-
libgl1-mesa-glx \
|
| 17 |
-
&& rm -rf /var/lib/apt/lists/* \
|
| 18 |
-
&& git lfs install
|
| 19 |
-
|
| 20 |
-
# Install Python dependencies (if you have requirements.txt)
|
| 21 |
COPY requirements.txt .
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
-
# Copy
|
| 25 |
COPY . .
|
| 26 |
|
| 27 |
-
#
|
| 28 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
|
|
|
| 2 |
|
| 3 |
+
WORKDIR /app
|
|
|
|
| 4 |
|
| 5 |
+
# Install pip dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
COPY requirements.txt .
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
+
# Copy app code
|
| 10 |
COPY . .
|
| 11 |
|
| 12 |
+
# Launch Gradio on HF Space
|
| 13 |
CMD ["python", "app.py"]
|