Spaces:
Sleeping
Sleeping
Commit
·
3756764
1
Parent(s):
1bdc79f
fix: Dockerfile
Browse files- Dockerfile +10 -1
- requirements.txt +1 -1
Dockerfile
CHANGED
|
@@ -21,14 +21,23 @@ RUN apt-get update && apt-get install -y \
|
|
| 21 |
WORKDIR /app
|
| 22 |
|
| 23 |
COPY --chown=user ./requirements.txt requirements.txt
|
|
|
|
| 24 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
| 25 |
# Install Playwright browsers
|
| 26 |
RUN pip install playwright
|
| 27 |
RUN playwright install --with-deps
|
| 28 |
|
| 29 |
RUN useradd -m -u 1000 user
|
| 30 |
USER user
|
| 31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
COPY --chown=user . /app
|
| 34 |
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 21 |
WORKDIR /app
|
| 22 |
|
| 23 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 24 |
+
RUN pip install --no-cache-dir "gradio[mcp]"
|
| 25 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 26 |
+
|
| 27 |
# Install Playwright browsers
|
| 28 |
RUN pip install playwright
|
| 29 |
RUN playwright install --with-deps
|
| 30 |
|
| 31 |
RUN useradd -m -u 1000 user
|
| 32 |
USER user
|
| 33 |
+
|
| 34 |
+
ENV HOME=/home/user \
|
| 35 |
+
PATH=/home/user/.local/bin:$PATH \
|
| 36 |
+
GRADIO_ALLOW_FLAGGING=never \
|
| 37 |
+
GRADIO_NUM_PORTS=1 \
|
| 38 |
+
GRADIO_SERVER_NAME=0.0.0.0 \
|
| 39 |
+
GRADIO_THEME=huggingface \
|
| 40 |
+
SYSTEM=spaces
|
| 41 |
|
| 42 |
COPY --chown=user . /app
|
| 43 |
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
gradio[mcp]
|
| 2 |
textblob
|
| 3 |
fastapi==0.104.1
|
| 4 |
uvicorn==0.24.0
|
|
|
|
| 1 |
+
#gradio[mcp]
|
| 2 |
textblob
|
| 3 |
fastapi==0.104.1
|
| 4 |
uvicorn==0.24.0
|