Skip to content

Commit 839e5e5

Browse files
committed
Chg: convert as rye python package
1 parent 8591be3 commit 839e5e5

17 files changed

Lines changed: 540 additions & 436 deletions

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ FROM python:3.10-alpine
33
VOLUME /mnt/input
44
VOLUME /mnt/output
55

6-
ENV CRON ""
7-
ENV OPTIONS ""
6+
ENV CRON=""
7+
ENV OPTIONS=""
88

9-
COPY . /opt/phockup
10-
RUN chmod +x /opt/phockup/entrypoint.sh
9+
COPY entrypoint.sh /opt/entrypoint.sh
10+
RUN chmod +x /opt/entrypoint.sh
1111

12+
RUN pip install uv
1213
RUN apk --no-cache add exiftool \
13-
&& pip install --no-cache-dir -r /opt/phockup/requirements.txt \
14-
&& ln -s /opt/phockup/phockup.py /usr/local/bin/phockup \
1514
&& apk add bash \
1615
&& apk add flock
17-
18-
ENTRYPOINT ["/opt/phockup/entrypoint.sh"]
16+
RUN --mount=source=dist,target=/dist uv pip install --no-cache --system /dist/*.whl
17+
ENTRYPOINT ["/opt/entrypoint.sh"]

__main__.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)