Spaces:
Runtime error
Runtime error
Commit
·
ad4b6ac
1
Parent(s):
47f845c
Create Dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.9.15
|
3 |
+
|
4 |
+
# Set the working directory to /app
|
5 |
+
WORKDIR /app
|
6 |
+
|
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 --trusted-host pypi.python.org -r requirements.txt
|
12 |
+
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
13 |
+
|
14 |
+
|
15 |
+
# Make port 8080 available to the world outside this container
|
16 |
+
EXPOSE 8080
|
17 |
+
|
18 |
+
# Define environment variable
|
19 |
+
ENV NAME World
|
20 |
+
|
21 |
+
# Run app.py when the container launches
|
22 |
+
CMD ["python", "app.py"]
|