Spaces:
Sleeping
Sleeping
Commit
·
9c0e0f5
1
Parent(s):
56e3e70
Auto-commit: Dockerfile updated
Browse files- Dockerfile +2 -11
Dockerfile
CHANGED
|
@@ -41,25 +41,16 @@ RUN landrun --version
|
|
| 41 |
# Set working directory
|
| 42 |
WORKDIR /app
|
| 43 |
|
| 44 |
-
# Copy
|
| 45 |
-
COPY browser-use-main/browser_use ./browser_use
|
| 46 |
-
COPY browser-use-main/pyproject.toml ./
|
| 47 |
-
|
| 48 |
-
# Copy Python requirements
|
| 49 |
COPY requirements.txt .
|
|
|
|
| 50 |
|
| 51 |
# Install Python dependencies (Browser-Use + Playwright + FastAPI)
|
| 52 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 53 |
|
| 54 |
-
# Install Browser-Use in editable mode
|
| 55 |
-
RUN pip install -e .
|
| 56 |
-
|
| 57 |
# Install Playwright and Chromium browser
|
| 58 |
RUN playwright install chromium --with-deps
|
| 59 |
|
| 60 |
-
# Copy application code
|
| 61 |
-
COPY app.py .
|
| 62 |
-
|
| 63 |
# Create execution directory
|
| 64 |
RUN mkdir -p /tmp/sandbox && chmod 777 /tmp/sandbox
|
| 65 |
|
|
|
|
| 41 |
# Set working directory
|
| 42 |
WORKDIR /app
|
| 43 |
|
| 44 |
+
# Copy Python requirements and application code
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
COPY requirements.txt .
|
| 46 |
+
COPY app.py .
|
| 47 |
|
| 48 |
# Install Python dependencies (Browser-Use + Playwright + FastAPI)
|
| 49 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 50 |
|
|
|
|
|
|
|
|
|
|
| 51 |
# Install Playwright and Chromium browser
|
| 52 |
RUN playwright install chromium --with-deps
|
| 53 |
|
|
|
|
|
|
|
|
|
|
| 54 |
# Create execution directory
|
| 55 |
RUN mkdir -p /tmp/sandbox && chmod 777 /tmp/sandbox
|
| 56 |
|