Kripton12 commited on
Commit
b7ba3f6
·
verified ·
1 Parent(s): 5dceb66

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Install the mediaflow-proxy package
 
 
 
 
9
  RUN pip install mediaflow-proxy
10
 
11
- # Expose the port that the MediaFlow Proxy server will run on
12
- EXPOSE 8888
13
 
14
- # Use the CMD instruction to run the MediaFlow Proxy server
15
- CMD ["mediaflow-proxy"]
 
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"]