-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-build
33 lines (24 loc) · 927 Bytes
/
Dockerfile-build
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
FROM golang:1.21.4 AS build
ARG VERSION
ARG REVISION
ARG BUILDDATE
WORKDIR /src
COPY Makefile go.mod go.sum ./
RUN make download
COPY . .
RUN make clean build VERSION=$VERSION
FROM alpine:3.18.4
WORKDIR /usr/local/bin
COPY --from=build /src/gitlab-ci-semver-labels .
ENTRYPOINT ["gitlab-ci-semver-labels"]
LABEL \
maintainer="Piotr Roszatycki <[email protected]>" \
org.opencontainers.image.created=${BUILDDATE} \
org.opencontainers.image.description="Download release from Gitlab project" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.revision=${REVISION} \
org.opencontainers.image.source=https://github.com/dex4er/gitlab-ci-semver-labels \
org.opencontainers.image.title=gitlab-ci-semver-labels \
org.opencontainers.image.url=https://github.com/dex4er/gitlab-ci-semver-labels \
org.opencontainers.image.vendor=dex4er \
org.opencontainers.image.version=${VERSION}