2023-10-16 20:28:25 +01:00
|
|
|
FROM golang:alpine3.17 AS build
|
|
|
|
WORKDIR /build
|
|
|
|
COPY ./src ./src
|
|
|
|
WORKDIR /build/src
|
2024-03-03 21:55:50 +00:00
|
|
|
RUN apk add gcc libc-dev
|
2023-10-16 20:28:25 +01:00
|
|
|
RUN go get .
|
2024-03-03 21:55:50 +00:00
|
|
|
RUN CGO_ENABLED=1 go build -o /build/pretix-proxy
|
2023-10-16 20:28:25 +01:00
|
|
|
|
|
|
|
FROM alpine:3.17 AS final
|
|
|
|
COPY --from=build /build/pretix-proxy /bin/pretix-proxy
|
|
|
|
CMD pretix-proxy
|