Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +20 -12
Dockerfile
CHANGED
@@ -1,20 +1,28 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
# Install
|
4 |
-
RUN apt-get update && apt-get install -y
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# Set the working directory
|
8 |
WORKDIR /app
|
9 |
|
10 |
-
# Copy requirements
|
11 |
-
COPY requirements.txt .
|
|
|
|
|
12 |
|
13 |
-
#
|
14 |
-
|
15 |
|
16 |
-
#
|
17 |
-
COPY . .
|
18 |
-
|
19 |
-
# Command to run your application
|
20 |
CMD ["streamlit", "run", "app.py"]
|
|
|
1 |
+
FROM python:3.10
|
2 |
|
3 |
+
# Install system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
curl \
|
6 |
+
build-essential \
|
7 |
+
cargo \
|
8 |
+
libsm6 \
|
9 |
+
libxext6 \
|
10 |
+
libgl1-mesa-glx \
|
11 |
+
ffmpeg \
|
12 |
+
git \
|
13 |
+
git-lfs \
|
14 |
+
&& rm -rf /var/lib/apt/lists/*
|
15 |
|
16 |
# Set the working directory
|
17 |
WORKDIR /app
|
18 |
|
19 |
+
# Copy requirements and install Python dependencies
|
20 |
+
COPY requirements.txt /tmp/requirements.txt
|
21 |
+
RUN pip install --no-cache-dir --upgrade pip && \
|
22 |
+
pip install --no-cache-dir -r /tmp/requirements.txt
|
23 |
|
24 |
+
# Expose the default Streamlit port
|
25 |
+
EXPOSE 8501
|
26 |
|
27 |
+
# Command to run the app
|
|
|
|
|
|
|
28 |
CMD ["streamlit", "run", "app.py"]
|