17 lines
267 B
Docker
17 lines
267 B
Docker
FROM golang:latest as builder
|
|
ENV GOPROXY https://goproxy.io,direct
|
|
ENV CGO_ENABLED 0
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN go build -o ddns -tags netgo
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
MAINTAINER Eirf
|
|
ENV VERSION 1.0
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/ddns /app/ddns
|
|
CMD ["/app/ddns"]
|