-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (25 loc) · 1010 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
28
29
30
31
32
33
34
FROM golang:alpine3.19 as build
WORKDIR /build
COPY . .
RUN apk update && apk add git \
&& go mod tidy \
&& go build -o ctlog .
FROM alpine:3.19
ENV VERSION=0.1.2
ARG CREATED
ARG REVISION
LABEL org.opencontainers.image.title="Certificate Stream"
LABEL org.opencontainers.image.description="Certificate Transparency Log monitoring for everybody."
LABEL org.opencontainers.image.version=$VERSION
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.url="https://github.com/pogzyb/certificate.stream"
LABEL org.opencontainers.image.source="https://github.com/pogzyb/certificate.stream"
LABEL org.opencontainers.image.documentation="https://github.com/pogzyb/certificate.stream"
LABEL org.opencontainers.image.created=$CREATED
LABEL org.opencontainers.image.revision=$REVISION
LABEL org.opencontainers.image.licenses="MIT"
COPY --from=build /build/ctlog /usr/local/bin/ctlog
RUN chmod u+x /usr/local/bin/ctlog
USER guest
ENTRYPOINT [ "ctlog" ]
CMD [ "--help" ]