pict-rs-proxy/docker/forgejo/Dockerfile
asonix 24e034c742
Some checks failed
/ clippy (push) Successful in 1m13s
/ check (armv7-unknown-linux-musleabihf) (push) Waiting to run
/ check (x86_64-unknown-linux-musl) (push) Waiting to run
/ tests (push) Has been cancelled
/ check (aarch64-unknown-linux-musl) (push) Has been cancelled
Add forgejo dockerfile
2024-02-11 14:52:32 -06:00

25 lines
393 B
Docker

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 tini && \
chown -R app:app /mnt
COPY pict-rs-proxy /usr/local/bin/pict-rs-proxy
USER app
EXPOSE 6669
EXPOSE 8080
VOLUME /mnt
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["/usr/local/bin/pict-rs-proxy"]