diff --git a/docker/Metafile b/docker/Metafile index 980cc53..fe36b48 100644 --- a/docker/Metafile +++ b/docker/Metafile @@ -9,4 +9,11 @@ RUN python -m venv /opt/venv ENV PATH="/opt/venv/bin:$PATH" ADD https://raw.githubusercontent.com/AirportR/FullTclash/dev/requirements.txt . RUN pip3 install --no-cache-dir -r requirements.txt && \ - pip3 install --no-cache-dir supervisor \ No newline at end of file + pip3 install --no-cache-dir supervisor + +FROM python:3.11.7-slim-bookworm + +COPY --from=compile-image /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ +COPY --from=compile-image /opt/venv /opt/venv + +ENV PATH="/opt/venv/bin:$PATH" \ No newline at end of file diff --git a/docker/Metafile.alpine b/docker/Metafile.alpine index 7113137..9c2548e 100644 --- a/docker/Metafile.alpine +++ b/docker/Metafile.alpine @@ -8,4 +8,11 @@ RUN python -m venv /opt/venv ENV PATH="/opt/venv/bin:$PATH" ADD https://raw.githubusercontent.com/AirportR/FullTclash/dev/requirements.txt . RUN pip3 install --no-cache-dir -r requirements.txt && \ - pip3 install --no-cache-dir supervisor \ No newline at end of file + pip3 install --no-cache-dir supervisor + +FROM python:3.11.7-alpine3.19 + +COPY --from=compile-image /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ +COPY --from=compile-image /opt/venv /opt/venv + +ENV PATH="/opt/venv/bin:$PATH" \ No newline at end of file