Skip to content

Commit d03b7c3

Browse files
committed
chore: update dev dockerfile
1 parent 93ab8df commit d03b7c3

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

Dockerfile.local renamed to Dockerfile.dev

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
11
## SPDX-FileCopyrightText: 2022 Comcast Cable Communications Management, LLC
22
## 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
84

95
WORKDIR /src
106

117
RUN apk add --no-cache --no-progress \
128
ca-certificates \
13-
make \
149
curl
1510

1611
# 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-
2112
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 && \
2214
chmod +x /go/bin/spruce
2315

24-
25-
RUN make build
16+
COPY . .
17+
RUN go build -o /go/bin/tr1d1um .
2618

2719
##########################
2820
# Build the final image.
@@ -32,7 +24,7 @@ FROM alpine:latest
3224

3325
# Copy over the standard things you'd expect.
3426
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 /
3628
COPY .release/docker/entrypoint.sh /
3729

3830
# Copy over spruce and the spruce template file used to make the actual configuration file.

0 commit comments

Comments
 (0)