Skip to content

Commit

Permalink
upgrade Docker container to use golang:1.18 and alpine:3.15. Pin alpi…
Browse files Browse the repository at this point in the history
…ne version
  • Loading branch information
marcel corso committed Apr 7, 2022
1 parent 521accf commit f5b7dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM golang:1.17 AS builder
FROM golang:1.18 AS builder

WORKDIR /build

COPY . .

RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -mod vendor -o sachet github.com/messagebird/sachet/cmd/sachet

FROM alpine
FROM alpine:3.15

COPY --from=builder /build/sachet /usr/local/bin
COPY --chown=nobody examples/config.yaml /etc/sachet/config.yaml
Expand Down

0 comments on commit f5b7dd7

Please sign in to comment.