Skip to content

Commit

Permalink
Update Dockerfile build config
Browse files Browse the repository at this point in the history
  • Loading branch information
stevapple committed Aug 21, 2024
1 parent 10cf8cf commit 3aafe04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM golang:1.22 AS build
FROM golang:1.23 AS build

WORKDIR /go/src/app
COPY . .

RUN go mod download
RUN CGO_ENABLED=0 go build -o /go/bin/sshmux
RUN CGO_ENABLED=0 go build -o /go/bin/sshmux -trimpath

FROM gcr.io/distroless/static-debian12:nonroot
COPY ./etc/config.example.toml /etc/config.example.toml
COPY --from=build /go/bin/sshmux /
CMD ["/sshmux"]

0 comments on commit 3aafe04

Please sign in to comment.