Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -15
Dockerfile
CHANGED
|
@@ -1,26 +1,13 @@
|
|
| 1 |
-
FROM python:3.10
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
-
|
| 5 |
-
# -------- install system deps + Node.js 18 --------
|
| 6 |
-
RUN apt-get update && apt-get install -y \
|
| 7 |
-
curl \
|
| 8 |
-
ca-certificates \
|
| 9 |
-
gnupg \
|
| 10 |
-
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
|
| 11 |
-
&& apt-get install -y nodejs \
|
| 12 |
-
&& npm install -g youtube-po-token-generator \
|
| 13 |
-
&& apt-get clean \
|
| 14 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
-
|
| 16 |
# -------- install python deps --------
|
| 17 |
COPY requirements.txt .
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
# -------- copy app --------
|
| 21 |
COPY app.py .
|
| 22 |
-
COPY tokenGenerator.py .
|
| 23 |
|
| 24 |
EXPOSE 7860
|
| 25 |
|
| 26 |
-
CMD ["gunicorn", "-w", "2", "-k", "gthread", "-b", "0.0.0.0:7860", "app:app"]
|
|
|
|
| 1 |
+
FROM python:3.10
|
| 2 |
|
| 3 |
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# -------- install python deps --------
|
| 5 |
COPY requirements.txt .
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
# -------- copy app --------
|
| 9 |
COPY app.py .
|
|
|
|
| 10 |
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
+
CMD ["gunicorn", "-w", "2", "-k", "gthread", "-b", "0.0.0.0:7860", "app:app"]
|