Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +12 -4
Dockerfile
CHANGED
|
@@ -1,15 +1,23 @@
|
|
| 1 |
FROM python:3.12-slim
|
| 2 |
|
| 3 |
-
WORKDIR /app
|
| 4 |
|
| 5 |
-
RUN apt-get update && \
|
| 6 |
-
|
| 7 |
-
|
| 8 |
|
| 9 |
# RUN git config --global url.https://${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/
|
| 10 |
|
| 11 |
RUN git clone https://github.com/SteveCelticus/httpsstream.git /app
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
CMD ["python3", "run.py"]
|
|
|
|
| 1 |
FROM python:3.12-slim
|
| 2 |
|
| 3 |
+
# WORKDIR /app
|
| 4 |
|
| 5 |
+
# RUN apt-get update && \
|
| 6 |
+
# apt-get install -y git && \
|
| 7 |
+
# apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
# RUN git config --global url.https://${GITHUB_TOKEN}@github.com/.insteadOf https://github.com/
|
| 10 |
|
| 11 |
RUN git clone https://github.com/SteveCelticus/httpsstream.git /app
|
| 12 |
|
| 13 |
+
# Copy the current directory contents into the container at /app
|
| 14 |
+
# (including run.py, filmpertutti.py, and requirements.txt)
|
| 15 |
+
ADD . /app
|
| 16 |
+
# Install any needed packages specified in requirements.txt
|
| 17 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 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 pip install --no-cache-dir -r requirements.txt
|
| 22 |
|
| 23 |
CMD ["python3", "run.py"]
|