Skip to content

Commit

Permalink
fix: pi/Dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Jul 4, 2024
1 parent b090b66 commit 42ddfe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pi/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18 AS build
FROM golang:1.21.12 AS build
WORKDIR /sensors
COPY go.mod ./
COPY go.sum ./
Expand All @@ -7,7 +7,7 @@ RUN go mod verify
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -installsuffix cgo -tags=nomsgpack -a -o app .

FROM golang:1.18
FROM golang:1.21.12
WORKDIR /app
COPY --from=build /sensors/app ./app
CMD ["./app"]

0 comments on commit 42ddfe4

Please sign in to comment.