Spaces:
Sleeping
Sleeping
souvik0306
commited on
Commit
·
6b9d70a
1
Parent(s):
85a55ef
Docker
Browse files- flight.docker +19 -0
flight.docker
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.9-slim
|
3 |
+
|
4 |
+
# Set the working directory inside the container
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy the requirements.txt file into the container at /app
|
8 |
+
COPY requirements.txt /app/
|
9 |
+
|
10 |
+
# Install any needed packages specified in requirements.txt
|
11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
# Copy the current directory contents into the container at /app
|
14 |
+
COPY . /app/
|
15 |
+
|
16 |
+
# Expose the port that Gradio will run on
|
17 |
+
EXPOSE 7860
|
18 |
+
|
19 |
+
CMD ["python", "gradio_ui.py"]
|