File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 1
1
## SPDX-FileCopyrightText: 2022 Comcast Cable Communications Management, LLC
2
2
## SPDX-License-Identifier: Apache-2.0
3
- FROM docker.io/library/golang:1.19-alpine as builder
4
-
5
- ARG arm64
6
-
7
- COPY . /src
3
+ FROM docker.io/library/golang:1.23.2-alpine as builder
8
4
9
5
WORKDIR /src
10
6
11
7
RUN apk add --no-cache --no-progress \
12
8
ca-certificates \
13
- make \
14
9
curl
15
10
16
11
# Download spruce here to eliminate the need for curl in the final image
17
- ENV spruce_url_amd64=https://github.com/geofffranks/spruce/releases/download/v1.29.0/spruce-linux-amd64
18
- ENV spruce_url_arm64=https://github.com/geofffranks/spruce/releases/download/v1.30.2/spruce-linux-arm64
19
- RUN [ ${arm64}=true ] && (curl -L -o /go/bin/spruce ${spruce_url_arm64}) || (curl -L -o /go/bin/spruce ${spruce_url_amd64})
20
-
21
12
RUN mkdir -p /go/bin && \
13
+ curl -L -o /go/bin/spruce https://github.com/geofffranks/spruce/releases/download/v1.29.0/spruce-linux-amd64 && \
22
14
chmod +x /go/bin/spruce
23
15
24
-
25
- RUN make build
16
+ COPY . .
17
+ RUN go build -o /go/bin/tr1d1um .
26
18
27
19
##########################
28
20
# Build the final image.
@@ -32,7 +24,7 @@ FROM alpine:latest
32
24
33
25
# Copy over the standard things you'd expect.
34
26
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
35
- COPY --from=builder /src /tr1d1um /
27
+ COPY --from=builder /go/bin /tr1d1um /
36
28
COPY .release/docker/entrypoint.sh /
37
29
38
30
# Copy over spruce and the spruce template file used to make the actual configuration file.
You can’t perform that action at this time.
0 commit comments