mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-25 02:51:17 +00:00
20 lines
357 B
Docker
20 lines
357 B
Docker
|
ARG REPO_ARCH
|
||
|
|
||
|
FROM asonix/rust-runner:$REPO_ARCH-latest
|
||
|
|
||
|
USER root
|
||
|
RUN \
|
||
|
apk add exiftool imagemagick ffmpeg && \
|
||
|
chown -R app:app /mnt
|
||
|
|
||
|
ARG TARGET_ARCH
|
||
|
|
||
|
COPY target/$TARGET_ARCH/release/pict-rs /usr/local/bin/pict-rs
|
||
|
COPY docker/prod/root/ /
|
||
|
|
||
|
USER app
|
||
|
EXPOSE 8080
|
||
|
VOLUME /mnt
|
||
|
ENTRYPOINT ["/sbin/tini", "--"]
|
||
|
CMD ["/usr/local/bin/pict-rs", "-p", "/mnt"]
|