Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +13 -5
Dockerfile
CHANGED
|
@@ -3,13 +3,21 @@ FROM python:3.10-slim
|
|
| 3 |
|
| 4 |
# Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
|
|
|
|
|
|
| 6 |
RUN apt-get update && apt-get install -y git
|
|
|
|
|
|
|
| 7 |
RUN git clone https://github.com/UrloMythus/LoapTri/
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
RUN pip install mediaflow-proxy
|
| 10 |
|
| 11 |
-
# Expose the port that the
|
| 12 |
-
EXPOSE
|
| 13 |
|
| 14 |
-
#
|
| 15 |
-
CMD ["
|
|
|
|
| 3 |
|
| 4 |
# Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install necessary packages
|
| 8 |
RUN apt-get update && apt-get install -y git
|
| 9 |
+
|
| 10 |
+
# Clone the repository from GitHub
|
| 11 |
RUN git clone https://github.com/UrloMythus/LoapTri/
|
| 12 |
+
|
| 13 |
+
# Change the working directory to the folder where main.py is located
|
| 14 |
+
WORKDIR /app/LoapTri/mediaflow_proxy
|
| 15 |
+
|
| 16 |
+
# Install any required Python packages (including mediaflow-proxy)
|
| 17 |
RUN pip install mediaflow-proxy
|
| 18 |
|
| 19 |
+
# Expose the port that the application will run on
|
| 20 |
+
EXPOSE 8080
|
| 21 |
|
| 22 |
+
# Run main.py using Python
|
| 23 |
+
CMD ["python", "main.py"]
|