Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use an official Python runtime as a parent image
|
| 2 |
+
FROM python:3.10-slim-buster
|
| 3 |
+
|
| 4 |
+
# Set the working directory in the container to /app
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install any needed packages specified in requirements.txt
|
| 8 |
+
RUN pip install --no-cache-dir mediaflow-proxy
|
| 9 |
+
|
| 10 |
+
# Expose the port, for now default is 8080 cause it's the only one really allowed by HuggingFace
|
| 11 |
+
EXPOSE 8888
|
| 12 |
+
# Run run.py when the container launches
|
| 13 |
+
CMD ["uvicorn", "mediaflow_proxy.main:app", "--host", "0.0.0.0", "--port", "8888", "--workers", "4"]
|