Spaces:
Sleeping
Sleeping
Commit
·
47f0ba6
1
Parent(s):
dcf7d83
Change python version
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
-
FROM python:3.
|
3 |
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
@@ -7,7 +7,9 @@ WORKDIR /app
|
|
7 |
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
|
|
10 |
# Install any needed packages specified in requirements.txt
|
|
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
# Make port 7860 available to the world outside this container
|
@@ -18,3 +20,4 @@ ENV NAME becognitium
|
|
18 |
|
19 |
# Run app.py when the container launches
|
20 |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
|
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.10-slim
|
3 |
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
|
|
7 |
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
10 |
+
|
11 |
# Install any needed packages specified in requirements.txt
|
12 |
+
RUN python --version
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
|
15 |
# Make port 7860 available to the world outside this container
|
|
|
20 |
|
21 |
# Run app.py when the container launches
|
22 |
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
|
23 |
+
|