abra/Dockerfile
2023-01-15 18:08:22 -08:00

20 lines
297 B
Docker

FROM golang:1.18-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"]