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