/
githubmirror
/
screenshot-to-code
Обзор
Документация
Войти
/
githubmirror
/
screenshot-to-code
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
backend/Dockerfile
24 строки
601 B
Abi Raja
Add screenshot preview tool
14 июн 2026, 22:40
14 июн 2026, 22:40
c86e453
Код
Авторство
О чём код?
FROM python:3.12.3-slim-bookworm ENV POETRY_VERSION 1.8.0 # Install system dependencies RUN pip install "poetry==$POETRY_VERSION" # Set work directory WORKDIR /app # Copy only requirements to cache them in docker layer COPY poetry.lock pyproject.toml /app/ # Disable the creation of virtual environments RUN poetry config virtualenvs.create false # Install dependencies RUN poetry install # Install Chromium and Linux libraries needed by Playwright screenshot previews. RUN playwright install --with-deps chromium # Copy the current directory contents into the container at /app COPY ./ /app/