Skip to content

Commit

Permalink
Use buster go image for device monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Apr 26, 2022
1 parent 6aa2e97 commit 6db2e5d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile.monitor
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM --platform=$BUILDPLATFORM golang:1.18-alpine AS builder
FROM --platform=$BUILDPLATFORM golang:1.18-buster AS builder

RUN apk update
RUN apk add make bash
WORKDIR /workspace
COPY go.mod go.sum ./
RUN go mod download
Expand All @@ -19,7 +17,7 @@ RUN GOOS=$TARGETOS GOARCH=$TARGETARCH \
DEVICE_MONITOR_BUILD_OUTPUT_PATH=/build/bin/device-monitor \
make device-monitor

FROM ubuntu:18.04
FROM golang:1.18-buster

COPY --from=builder /build/bin/device-monitor /go/bin/device-monitor

Expand Down

0 comments on commit 6db2e5d

Please sign in to comment.