Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +26 -25
Dockerfile
CHANGED
@@ -1,26 +1,27 @@
|
|
1 |
-
# Use Python 3.10
|
2 |
-
FROM python:3.10-slim
|
3 |
-
|
4 |
-
# Set the working directory in the container
|
5 |
-
WORKDIR /app
|
6 |
-
|
7 |
-
# Copy the current directory contents into the container at /app
|
8 |
-
COPY . /app
|
9 |
-
|
10 |
-
# Install system dependencies
|
11 |
-
RUN apt-get update && apt-get install -y \
|
12 |
-
build-essential \
|
13 |
-
curl \
|
14 |
-
software-properties-common \
|
15 |
-
git \
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
RUN pip install --no-cache-dir
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
26 |
CMD ["streamlit", "run", "app.py"]
|
|
|
1 |
+
# Use Python 3.10
|
2 |
+
FROM python:3.10-slim
|
3 |
+
|
4 |
+
# Set the working directory in the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the current directory contents into the container at /app
|
8 |
+
COPY . /app
|
9 |
+
|
10 |
+
# Install system dependencies
|
11 |
+
RUN apt-get update && apt-get install -y \
|
12 |
+
build-essential \
|
13 |
+
curl \
|
14 |
+
software-properties-common \
|
15 |
+
git \
|
16 |
+
libgomp1 \
|
17 |
+
&& rm -rf /var/lib/apt/lists/*
|
18 |
+
|
19 |
+
# Upgrade pip and install required python packages
|
20 |
+
RUN pip install --no-cache-dir --upgrade pip
|
21 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
22 |
+
|
23 |
+
# Make port 8501 available to the world outside this container
|
24 |
+
EXPOSE 8501
|
25 |
+
|
26 |
+
# Run app.py when the container launches
|
27 |
CMD ["streamlit", "run", "app.py"]
|