-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile-noproxy
More file actions
16 lines (16 loc) · 808 Bytes
/
Copy pathDockerfile-noproxy
File metadata and controls
16 lines (16 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ARG BUILDER=riderlty/fontinass-builder:latest
FROM ${BUILDER} AS builder
FROM python:3.10-slim-bookworm
# FROM python:3.10.17-alpine
COPY onlineFonts.json run.sh requirements.txt uv.lock pyproject.toml /
COPY src /src/
# COPY --from=builder /wheels /wheels
COPY --from=builder /src/py2cy/*.so /src/py2cy/
COPY --from=builder /src/subset/dist /src/subset/dist
# COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# ENV UV_COMPILE_BYTECODE=1
# ENV UV_SYSTEM_PYTHON=1
RUN --mount=type=bind,target=/wheels,from=builder,source=/wheels \
chmod 777 /run.sh && pip install --no-cache --find-links /wheels -r /requirements.txt && mkdir /data
# RUN chmod 777 /run.sh && uv pip install --no-cache --find-links /wheels -r /requirements.txt && rm -rf /wheels && mkdir /data
CMD ["/bin/sh" , "-c" , "/run.sh"]