2022-08-17 09:58:45 -07:00
|
|
|
FROM golang:1.19 as build
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN go build .
|
|
|
|
|
|
|
|
FROM alpine:latest as app
|
|
|
|
|
|
|
|
RUN apk --no-cache add bash libc6-compat && \
|
|
|
|
mkdir /app
|
|
|
|
|
2023-06-18 13:34:10 -07:00
|
|
|
COPY --from=build /app/ddns /usr/bin/ddns
|
2022-08-17 09:58:45 -07:00
|
|
|
|
2023-06-18 13:34:10 -07:00
|
|
|
CMD [ "ddns" ]
|