OrbitalBeat/Dockerfile
DataHoarder 80a5ba3544
All checks were successful
continuous-integration/drone/push Build is passing
Update dependencies, bump Dockerfile to go 1.19
2022-08-04 15:39:10 +02:00

19 lines
321 B
Docker

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