-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (22 loc) · 876 Bytes
/
Dockerfile
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
FROM golang:alpine3.19 as stage
WORKDIR /build
COPY . .
RUN go build -o czdsdump .
FROM alpine:3.19
ARG VERSION
ARG CREATED
ARG REVISION
LABEL org.opencontainers.image.title="CZDSdump"
LABEL org.opencontainers.image.description="Tool for dumping the Centralized Zone Data System."
LABEL org.opencontainers.image.version=$VERSION
LABEL org.opencontainers.image.authors="pogzyb@umich.edu"
LABEL org.opencontainers.image.url="https://github.com/pogzyb/czdsdump"
LABEL org.opencontainers.image.source="https://github.com/pogzyb/czdsdump"
LABEL org.opencontainers.image.documentation="https://github.com/pogzyb/czdsdump"
LABEL org.opencontainers.image.created=$CREATED
LABEL org.opencontainers.image.revision=$REVISION
LABEL org.opencontainers.image.licenses="MIT"
COPY --from=stage /build/czdsdump /usr/local/bin/czdsdump
USER guest
ENTRYPOINT [ "czdsdump" ]
CMD [ "--help" ]