Spaces:
Paused
Paused
Upload 9 files
Browse files- Dockerfile +8 -4
Dockerfile
CHANGED
|
@@ -12,7 +12,8 @@ COPY requirements.txt .
|
|
| 12 |
# Use --upgrade to ensure latest versions are installed
|
| 13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 14 |
|
| 15 |
-
# Install Playwright browser binaries
|
|
|
|
| 16 |
RUN playwright install chromium --with-deps
|
| 17 |
|
| 18 |
# Copy the current directory contents into the container at /app
|
|
@@ -22,9 +23,12 @@ COPY models.py .
|
|
| 22 |
# Make port 8000 available to the world outside this container
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
-
# Define environment variables (placeholders, will be set at runtime)
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
# Run uvicorn when the container launches
|
| 30 |
# Use 0.0.0.0 to make it accessible externally
|
|
|
|
| 12 |
# Use --upgrade to ensure latest versions are installed
|
| 13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 14 |
|
| 15 |
+
# Install Playwright browser binaries to a persistent, accessible location
|
| 16 |
+
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
| 17 |
RUN playwright install chromium --with-deps
|
| 18 |
|
| 19 |
# Copy the current directory contents into the container at /app
|
|
|
|
| 23 |
# Make port 8000 available to the world outside this container
|
| 24 |
EXPOSE 7860
|
| 25 |
|
| 26 |
+
# Define environment variables (placeholders, will be set at runtime on Hugging Face)
|
| 27 |
+
# Use NOTION_COOKIES for multiple account support.
|
| 28 |
+
# PROXY_AUTH_TOKEN and PROXY_URL are also used by the application.
|
| 29 |
+
ENV NOTION_COOKIES=""
|
| 30 |
+
ENV PROXY_AUTH_TOKEN="default_token"
|
| 31 |
+
ENV PROXY_URL=""
|
| 32 |
|
| 33 |
# Run uvicorn when the container launches
|
| 34 |
# Use 0.0.0.0 to make it accessible externally
|