bakulkrupuk2025 commited on
Commit
554da65
·
verified ·
1 Parent(s): b064e2a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -18
Dockerfile CHANGED
@@ -1,26 +1,13 @@
1
- FROM python:3.11-slim
2
 
3
- # Install Playwright dependencies
4
- RUN apt-get update && apt-get install -y \
5
- wget curl gnupg \
6
- libnss3 libatk1.0-0 libatk-bridge2.0-0 \
7
- libcups2 libdrm2 libxkbcommon0 libxcomposite1 \
8
- libxdamage1 libxfixes3 libxrandr2 libgbm1 \
9
- libpango-1.0-0 libcairo2 libasound2 \
10
- fonts-liberation --no-install-recommends \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- WORKDIR /code
14
 
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
- RUN playwright install chromium
18
- RUN playwright install-deps chromium
19
-
20
- COPY server.py .
21
 
22
- RUN mkdir -p /tmp/openclaw/skills /tmp/openclaw/mcp /tmp/openclaw/bots
23
 
24
- EXPOSE 7860
 
25
 
26
  CMD ["python", "server.py"]
 
1
+ FROM mcr.microsoft.com/playwright/python:v1.52.0-jammy
2
 
3
+ WORKDIR /app
 
 
 
 
 
 
 
 
 
 
4
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
7
 
8
+ COPY . .
9
 
10
+ ENV PYTHONUNBUFFERED=1
11
+ ENV PORT=7860
12
 
13
  CMD ["python", "server.py"]