-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (25 loc) · 1.11 KB
/
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
# builder image
FROM golang:1.18 as builder
COPY /build/src /build
WORKDIR /build
RUN go mod tidy
RUN CGO_ENABLED=0 GOOS=linux go build -a -o maximilian .
FROM ghcr.io/unb-libraries/base:2.x
MAINTAINER UNB Libraries <libsupport@unb.ca>
COPY --from=builder /build/maximilian /app/maximilian
COPY ./build /build
ENTRYPOINT /app/maximilian
# Container metadata.
LABEL ca.unb.lib.generator="go" \
com.microscaling.docker.dockerfile="/Dockerfile" \
com.microscaling.license="MIT" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="maximilian.lib.unb.ca is a Slack ChatOps app to interact with the Kubernetes cluster at UNB Libraries." \
org.label-schema.name="maximilian.lib.unb.ca" \
org.label-schema.schema-version="1.0" \
org.label-schema.url="https://maximilian.lib.unb.ca" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/unb-libraries/maximilian.lib.unb.ca" \
org.label-schema.vendor="University of New Brunswick Libraries" \
org.label-schema.version=$VERSION \
org.opencontainers.image.source="https://github.com/unb-libraries/maximilian.lib.unb.ca"