Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +23 -17
Dockerfile
CHANGED
@@ -1,17 +1,23 @@
|
|
1 |
-
# Use
|
2 |
-
FROM python:3.9-slim
|
3 |
-
|
4 |
-
# Set the working directory
|
5 |
-
WORKDIR /app
|
6 |
-
|
7 |
-
#
|
8 |
-
|
9 |
-
|
10 |
-
#
|
11 |
-
|
12 |
-
|
13 |
-
#
|
14 |
-
|
15 |
-
|
16 |
-
#
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use a base image with Python
|
2 |
+
FROM python:3.9-slim
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Upgrade pip to the latest version
|
8 |
+
RUN pip install --upgrade pip
|
9 |
+
|
10 |
+
# Copy the current directory contents into the container at /app
|
11 |
+
COPY . /app
|
12 |
+
|
13 |
+
# Install any needed packages specified in requirements.txt
|
14 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
+
|
16 |
+
# Make port 5000 available to the world outside this container
|
17 |
+
EXPOSE 5000
|
18 |
+
|
19 |
+
# Define environment variable
|
20 |
+
ENV NAME World
|
21 |
+
|
22 |
+
# Run app.py when the container launches
|
23 |
+
CMD ["python", "app.py"]
|