Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim-buster
|
| 2 |
+
|
| 3 |
+
# Set the working directory in the container to /app
|
| 4 |
+
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
# Install git
|
| 7 |
+
RUN apt-get update && apt-get install -y git
|
| 8 |
+
|
| 9 |
+
# Clone the repository
|
| 10 |
+
RUN git clone https://github.com/vrayprof/mediaflowproxye.git .
|
| 11 |
+
|
| 12 |
+
# Copy the local config.json file to the container
|
| 13 |
+
|
| 14 |
+
# Install any needed packages specified in requirements.txt
|
| 15 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
EXPOSE 8888
|
| 19 |
+
|
| 20 |
+
# Run run.py when the container launches
|
| 21 |
+
CMD ["uvicorn", "run:main_app", "--host", "0.0.0.0", "--port", "8888", "--workers", "4"]
|