Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +14 -12
Dockerfile
CHANGED
|
@@ -1,21 +1,23 @@
|
|
| 1 |
-
# Use
|
| 2 |
-
FROM python:3.10-slim
|
| 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 |
-
RUN pip install mediaflow-proxy
|
| 16 |
|
| 17 |
-
#
|
|
|
|
|
|
|
|
|
|
| 18 |
EXPOSE 8080
|
| 19 |
|
| 20 |
-
# Run
|
| 21 |
-
CMD ["
|
|
|
|
| 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 git
|
| 8 |
RUN apt-get update && apt-get install -y git
|
| 9 |
|
| 10 |
+
# Clone the repository
|
| 11 |
+
RUN git clone https://github.com/UrloMythus/MammaMia.git .
|
| 12 |
|
| 13 |
+
# Copy the local config.json file to the container
|
| 14 |
+
COPY config.json /app/config.json
|
|
|
|
| 15 |
|
| 16 |
+
# Install any needed packages specified in requirements.txt
|
| 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 run.py when the container launches
|
| 23 |
+
CMD ["python", "run.py"]
|