Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +14 -11
Dockerfile
CHANGED
|
@@ -1,19 +1,22 @@
|
|
| 1 |
-
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
# Set the working directory
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
-
# Install
|
| 7 |
RUN apt-get update && apt-get install -y git
|
| 8 |
|
| 9 |
-
# Clone the repository
|
| 10 |
-
RUN git clone https://github.com/UrloMythus/
|
| 11 |
|
| 12 |
-
#
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
#
|
|
|
|
|
|
|
|
|
|
| 16 |
EXPOSE 8080
|
| 17 |
|
| 18 |
-
# Run
|
| 19 |
-
CMD ["python", "
|
|
|
|
| 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/UrloMythus/MammaMia.git .
|
| 11 |
|
| 12 |
+
# Copy the local config.json file to the container
|
| 13 |
+
COPY config.json /app/config.json
|
| 14 |
+
|
| 15 |
+
# Install any needed packages specified in requirements.txt
|
| 16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
+
|
| 18 |
+
# Expose the port, for now default is 8080 cause it's the only one really allowed by HuggingFace
|
| 19 |
EXPOSE 8080
|
| 20 |
|
| 21 |
+
# Run run.py when the container launches
|
| 22 |
+
CMD ["python", "run.py"]
|