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 Oct 11, 2023
1 parent b090b66 commit cc6dc7a
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.20.9 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.20.9
WORKDIR /app
COPY --from=build /sensors/app ./app
CMD ["./app"]

0 comments on commit cc6dc7a

Please sign in to comment.