SynchRoGazer/Dockerfile
DataHoarder e7bffd82a3
Some checks failed
continuous-integration/drone/push Build is failing
Update dependencies, bump to go 1.19
2022-08-04 15:41:47 +02:00

19 lines
No EOL
306 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 srg . && mv srg /usr/bin && rm -rf /src
FROM alpine:latest
COPY --from=builder /usr/bin/srg /usr/bin/srg
WORKDIR /
ENTRYPOINT ["/usr/bin/srg"]