mirror of
https://github.com/sums001/Windows-Copilot-API
synced 2026-08-09 13:11:24 +00:00
21 lines
561 B
Docker
21 lines
561 B
Docker
# Playwright needs Chromium + system libs. The official Playwright Python image
|
|
# ships them preinstalled and matches our playwright>=1.60 pin.
|
|
FROM mcr.microsoft.com/playwright/python:v1.60.0-noble
|
|
|
|
WORKDIR /app
|
|
|
|
# Install Python deps first so the layer caches across code changes.
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt \
|
|
&& python -m playwright install chromium
|
|
|
|
COPY . .
|
|
|
|
# Serve on all interfaces inside the container; map the port in compose.
|
|
ENV HOST=0.0.0.0 \
|
|
PORT=8000
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["python", "app.py"]
|