Files
ddns/Dockerfile
2023-12-28 22:16:13 +08:00

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"]