Skip to content

Commit

Permalink
Docker improvements (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
inverse authored Aug 22, 2021
1 parent 06470c6 commit 67b97b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
FROM python:3.8.7-alpine
FROM python:3.9-alpine

RUN apk --no-cache add exiftool curl \
RUN apk add --no-cache --virtual .build-dependencies \
curl \
&& apk --no-cache add exiftool \
&& curl -L https://github.com/ivandokov/phockup/archive/latest.tar.gz -o phockup.tar.gz \
&& tar -zxf phockup.tar.gz \
&& mv phockup-* /opt/phockup \
&& ln -s /opt/phockup/phockup.py /usr/local/bin/phockup
&& ln -s /opt/phockup/phockup.py /usr/local/bin/phockup \
&& apk del --no-cache --purge .build-dependencies \
&& rm phockup.tar.gz

ENTRYPOINT [ "phockup" ]
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ brew install phockup

### Docker
```
docker run -v ~/Pictures:/mnt ivandokov/phockup:latest phockup /mnt/Input /mnt/Output [PHOCKUP ARGUMENTS]
docker run -v ~/Pictures:/mnt ivandokov/phockup:latest /mnt/Input /mnt/Output [PHOCKUP ARGUMENTS]
```

The `-v ~/Pictures:/mnt` part of the command mounts your `~/Pictures` directory to `/mnt` inside the container. You can pass any **absolute** path to be mounted to the container and later on be used as paths for the `phockup` command. The example above provides your `~/Pictures/Input` as `INPUTDIR` and `~/Pictures/Output` as `OUTPUDIR`. You can pass additional arguments afterwards.
Expand Down

0 comments on commit 67b97b8

Please sign in to comment.