Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Use
|
2 |
-
FROM python:3.
|
3 |
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
@@ -15,10 +15,8 @@ RUN apt-get update && apt-get install -y \
|
|
15 |
git \
|
16 |
&& rm -rf /var/lib/apt/lists/*
|
17 |
|
18 |
-
# Upgrade pip
|
19 |
RUN pip install --no-cache-dir --upgrade pip
|
20 |
-
|
21 |
-
# Install any needed packages specified in requirements.txt
|
22 |
RUN pip install --no-cache-dir -r requirements.txt
|
23 |
|
24 |
# Make port 8501 available to the world outside this container
|
|
|
1 |
+
# Use Python 3.10
|
2 |
+
FROM python:3.10-slim
|
3 |
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
|
|
15 |
git \
|
16 |
&& rm -rf /var/lib/apt/lists/*
|
17 |
|
18 |
+
# Upgrade pip and install required python packages
|
19 |
RUN pip install --no-cache-dir --upgrade pip
|
|
|
|
|
20 |
RUN pip install --no-cache-dir -r requirements.txt
|
21 |
|
22 |
# Make port 8501 available to the world outside this container
|