FROM golang:alpine3.17 AS build WORKDIR /build COPY ./src ./src WORKDIR /build/src RUN apk add gcc libc-dev RUN go get . RUN CGO_ENABLED=1 go build -o /build/pretix-proxy FROM alpine:3.17 AS final COPY --from=build /build/pretix-proxy /bin/pretix-proxy CMD pretix-proxy