Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 1.62 KB
/
Copy pathDockerfile
File metadata and controls
33 lines (27 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## Build final updatecli docker image
# We on purpose release artifacts created by goreleaser
# located in the dist directory
## The binary is statically linked (CGO_ENABLED=0 in .goreleaser.yml), so the image only
# needs CA certificates, which distroless provides, and no shell or package manager.
# The base is not pinned to the build platform: nothing runs at build time anymore, and
# pinning it gave the arm64 image an amd64 base.
FROM gcr.io/distroless/static-debian13:latest@sha256:448810357cc8e67b7208988abdba0f5ec3d3aebee0a5b13eb624979792cffc0f
LABEL maintainer="Olivier Vernin <me@olblak.com>"
# Dynamic labels are defined from the goreleaser configuration ".goreleaser.yaml"
LABEL org.opencontainers.image.authors="Olivier Vernin<me@olblak.com>"
LABEL org.opencontainers.image.url="https://github.com/updatecli/udash"
LABEL org.opencontainers.image.documentation="https://www.updatecli.io/docs/prologue/introduction/"
LABEL org.opencontainers.image.title="Udash"
LABEL org.opencontainers.image.description="A declarative update manager UI"
LABEL org.opencontainers.image.base.name="ghcr.io/updatecli/udash"
LABEL org.opencontainers.image.licenses="AGPL-3.0"
LABEL org.opencontainers.image.source = "https://github.com/updatecli/udash"
# Available files only matched against the binaries generated by the builds section
# and packages generated by the nfpms section.
COPY udash /usr/local/bin/udash
# Same uid and home as the previous Debian based image, so existing volume mounts such as
# /home/udash/.udash/config.yaml keep working.
ENV HOME=/home/udash
WORKDIR /home/udash
USER 1000:1000
ENTRYPOINT [ "/usr/local/bin/udash" ]