Something went wrong. Try again.
A basic dynamic DNS program with a Lua based configuration
Something went wrong. Try again.
dynamic-dns dockerfile
552 B · 32 lines
Dockerfile
at main
123456789101112131415161718192021222324252627282930313233FROM --platform=$BUILDPLATFORM golang:alpine AS build
RUN apk add git
WORKDIR /src/
COPY go.* /src/
RUN go mod download -x
COPY . /src
#Compiler SettingsENV CGO_ENABLED=0
# for full parings check out https://go.dev/doc/install/source#environmentENV GOOS=linux# this will be the target cpu arch# Can be amd64 arm64 386 ppc64ENV GOARCH=amd64
RUN go build -o /out/app .
# if you need certificates use: alpine# otherwise just use: scratchFROM alpine AS run
COPY --from=build /out/app /COPY config.lua /COPY .env /
ENTRYPOINT [ "/app" ]