mirror of
https://github.com/razzant/ouroboros.git
synced 2026-10-03 04:07:04 +00:00
28 lines
1,004 B
Text
28 lines
1,004 B
Text
# syntax=docker/dockerfile:1
|
|
|
|
# Ouroboros runtime-dependency base. Rebuild when this file or docker/certs changes:
|
|
# docker build -f docker/Dockerfile.base -t ouroboros-base:local .
|
|
|
|
ARG UV_IMAGE=ghcr.io/astral-sh/uv:0.12.1
|
|
ARG PYTHON_IMAGE=python:3.10-slim
|
|
|
|
FROM ${UV_IMAGE} AS uv
|
|
FROM ${PYTHON_IMAGE}
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
ARG PLAYWRIGHT_VERSION=1.62.0
|
|
|
|
COPY --from=uv /uv /uvx /bin/
|
|
COPY docker/certs/ /usr/local/share/ca-certificates/
|
|
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \
|
|
UV_SYSTEM_CERTS=true
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
|
--mount=type=cache,target=/var/cache/apt,sharing=locked \
|
|
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
|
apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates git \
|
|
&& update-ca-certificates \
|
|
&& uv pip install --system "playwright==${PLAYWRIGHT_VERSION}" \
|
|
&& python3 -m playwright install-deps chromium webkit \
|
|
&& python3 -m playwright install chromium webkit
|