19 lines
No EOL
306 B
Docker
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"] |