armbian-router/Dockerfile

13 lines
211 B
Docker
Raw Normal View History

2022-03-31 00:13:51 +00:00
FROM golang:alpine AS builder
ADD . /src
WORKDIR /src
2022-03-31 00:34:05 +00:00
RUN apk add --no-cache git && \
export CGO_ENABLED=0 && \
go build -o /src/dlrouter
2022-03-31 00:13:51 +00:00
FROM alpine
COPY --from=builder /src/dlrouter /usr/bin/dlrouter