-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (18 loc) · 829 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
FROM golang:1.21.6-bullseye as builder
COPY . /go/src/github.com/dhontecillas/reqstatsrv
WORKDIR /go/src/github.com/dhontecillas/reqstatsrv
RUN go build ./cmd/reqstatsrv
# FROM scratch
FROM bitnami/minideb:bullseye
EXPOSE 9876
COPY --from=builder /go/src/github.com/dhontecillas/reqstatsrv/reqstatsrv /reqstatsrv
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="ReqStatSrv: Rate Counting Server" \
org.label-schema.name="reqstatsrv" \
org.label-schema.schema-version="1.0" \
org.label-schema.url="http://www.hontecillas.com" \
org.label-schema.vcs-url="https://github.com/dhontecillas/reqstatsrv" \
org.label-schema.vcs-ref=$BUILD_VCS_REF \
org.label-schema.vendor="David Hontecillas" \
org.label-schema.version=$BUILD_VERSION
CMD ["/reqstatsrv"]