abra/Dockerfile
3wc 6c93f980dc
Some checks reported errors
continuous-integration/drone/push Build was killed
chore: tweak docker build
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"]