Files
ddns/Dockerfile
2023-12-28 21:56:01 +08:00

16 lines
237 B
Docker

FROM golang:latest as builder
ENV GOPROXY https://goproxy.io,direct
WORKDIR /app
COPY . .
RUN go build -o ddns
FROM alpine:latest
MAINTAINER Eirf
ENV VERSION 1.0
WORKDIR /app
COPY --from=builder /app/ddns /app/ddns
CMD ["/app/ddns"]