2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00
pict-rs/docker/forgejo/Dockerfile

25 lines
427 B
Text
Raw Normal View History

FROM alpine:3.19
ARG UID=991
ARG GID=991
ENV \
UID=${UID} \
GID=${GID}
USER root
RUN \
addgroup -g "${GID}" app && \
adduser -D -G app -u "${UID}" -g "" -h /opt/app app && \
apk add exiftool ffmpeg imagemagick imagemagick-heic tini && \
2024-02-08 04:12:17 +00:00
chown -R app:app /mnt
COPY pict-rs /usr/local/bin/pict-rs
USER app
EXPOSE 6669
EXPOSE 8080
VOLUME /mnt
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/usr/local/bin/pict-rs", "run"]