-
-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 697 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (20 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM python:3.12-slim
RUN apt-get -y update && apt-get install -y --no-install-recommends \
exiftool \
poppler-utils \
&& rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:0.7.14 /uv /uvx /bin/
WORKDIR /app
ENV UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy \
PATH="/app/.venv/bin:$PATH"
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --locked --no-install-project
ADD . /app
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --locked
COPY ./organize ./organize
ENTRYPOINT ["python", "-m", "organize"]
CMD ["--help"]