forked from imsky/github-fresh
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
24 lines (15 loc) · 852 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
FROM golang:1.12-alpine AS build
COPY main.go .
ARG LDFLAGS
RUN GOOS=linux GOARCH=386 go build -ldflags "${LDFLAGS}" -o github-fresh
FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /go/github-fresh /go/github-fresh
ENTRYPOINT ["/go/github-fresh"]
ARG NAME
ARG VERSION
ARG COMMIT
ARG BUILD_DATE
LABEL maintainer="Ivan Malopinsky" repository="https://github.com/imsky/github-fresh" homepage="https://github.com/imsky/github-fresh"
LABEL org.label-schema.name="${NAME}" org.label-schema.build-date="${BUILD_DATE}" org.label-schema.vcs-ref="${COMMIT}" org.label-schema.version="${VERSION}" org.label-schema.schema-version="1.0"
LABEL com.github.actions.name="${NAME}" com.github.actions.description="Keep your GitHub repo fresh" com.github.actions.icon="github" com.github.actions.color="black"