Skip to content

Commit

Permalink
Chg: convert as rye python package
Browse files Browse the repository at this point in the history
  • Loading branch information
inkhey committed Sep 10, 2024
1 parent 8591be3 commit 5cc855e
Show file tree
Hide file tree
Showing 17 changed files with 540 additions and 436 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ FROM python:3.10-alpine
VOLUME /mnt/input
VOLUME /mnt/output

ENV CRON ""
ENV OPTIONS ""
ENV CRON=""
ENV OPTIONS=""

COPY . /opt/phockup
RUN chmod +x /opt/phockup/entrypoint.sh
COPY entrypoint.sh /opt/entrypoint.sh
RUN chmod +x /opt/entrypoint.sh

RUN pip install uv
RUN apk --no-cache add exiftool \
&& pip install --no-cache-dir -r /opt/phockup/requirements.txt \
&& ln -s /opt/phockup/phockup.py /usr/local/bin/phockup \
&& apk add bash \
&& apk add flock

ENTRYPOINT ["/opt/phockup/entrypoint.sh"]
RUN --mount=source=dist,target=/dist uv pip install --no-cache --system /dist/*.whl
ENTRYPOINT ["/opt/entrypoint.sh"]
12 changes: 0 additions & 12 deletions __main__.py

This file was deleted.

Loading

0 comments on commit 5cc855e

Please sign in to comment.