diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 18 | +9 −9 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Dockerfile b/Dockerfile index d82aa9e..e4f4141 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,23 +7,23 @@ ARG ALPINE_DIGEST=sha256:fd791d74b68913cbb027c6546007b3f0d3bc45125f797758156952b ARG DISTROLESS_DIGEST=sha256:a77defd6fedbb3392b175ba8ea3d1c22be963c1597c248c3ba987ddd80bfb512 FROM --platform=$BUILDPLATFORM docker.io/library/alpine:${ALPINE_VERSION}@${ALPINE_DIGEST} AS rootfs -RUN install -d -m 0750 /rootfs/var/lib/tesor +RUN install -d -m 0750 /rootfs/var/lib/recluse FROM gcr.io/distroless/cc-debian13:nonroot@${DISTROLESS_DIGEST} ARG TARGETARCH -LABEL org.opencontainers.image.source="https://git.dimidiumlabs.io/tesor" \ +LABEL org.opencontainers.image.source="https://github.com/dimidiumlabs/recluse" \ org.opencontainers.image.licenses="AGPL-3.0-or-later" -COPY --chown=root:root --chmod=0755 .container/binary-${TARGETARCH}/tesor /usr/local/bin/tesor -COPY --from=rootfs --chown=10000:10000 /rootfs/var/lib/tesor /var/lib/tesor -COPY --chown=root:root pkg/tesor.toml /etc/tesor.toml -COPY --chown=root:root LICENSE README.md /usr/share/doc/tesor/ +COPY --chown=root:root --chmod=0755 .container/binary-${TARGETARCH}/recluse /usr/local/bin/recluse +COPY --from=rootfs --chown=10000:10000 /rootfs/var/lib/recluse /var/lib/recluse +COPY --chown=root:root pkg/recluse.toml /etc/recluse.toml +COPY --chown=root:root LICENSE README.md /usr/share/doc/recluse/ USER 10000:10000 EXPOSE 2000 -VOLUME ["/var/lib/tesor"] +VOLUME ["/var/lib/recluse"] -ENTRYPOINT ["/usr/local/bin/tesor"] -CMD ["--config=/etc/tesor.toml"] +ENTRYPOINT ["/usr/local/bin/recluse"] +CMD ["--config=/etc/recluse.toml"] |
