diff --git a/Dockerfile b/Dockerfile index 821d818..e1ab4b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM golang:1.21-alpine AS build +FROM golang:1.21 AS build WORKDIR /usr/src/app COPY . . # get ssl certs to copy into scratch image, as it won't have them by default. -RUN apk update && apk add --no-cache git ca-certificates && update-ca-certificates +RUN apt update && apt-get install git ca-certificates && update-ca-certificates RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -v -o /usr/local/bin/crossposting-service ./cmd/crossposting-service