abra/Dockerfile

20 lines
297 B
Docker

FROM golang:1.20-alpine AS build
ENV GOPRIVATE coopcloud.tech
RUN apk add --no-cache make git gcc musl-dev
COPY . /app
WORKDIR /app
RUN CGO_ENABLED=0 make build
# RUN rm go.sum && go get -v -d -u ./... && \
# make build
FROM scratch
COPY --from=build /app/abra /abra
ENTRYPOINT ["/abra"]