OrbitalBeat/Dockerfile
DataHoarder a97d3e07c2
All checks were successful
continuous-integration/drone/push Build is passing
Use alpine for image, and trim it
2022-07-24 22:02:22 +02:00

19 lines
321 B
Docker

FROM golang:1.18-alpine AS builder
COPY . /src
WORKDIR /src
ENV GOAMD64=v2
ENV GOARM=6
RUN apk update && apk add --no-cache gcc musl-dev
RUN go build -v -o orbeat . && mv orbeat /usr/bin && rm -rf /src
FROM alpine:latest
COPY --from=builder /usr/bin/orbeat /usr/bin/orbeat
WORKDIR /
ENTRYPOINT ["/usr/bin/orbeat"]