diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cc248f5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM golang:1.17-alpine AS builder + +RUN go install suah.dev/widdler@latest + +FROM alpine:3 + +RUN mkdir -p /app/data/html + +WORKDIR /app + +EXPOSE 8080 + +VOLUME /app/data + +COPY --from=builder /go/bin/* /app/ + +CMD [ "./widdler", "-auth", "false", "-wikis", "/app/data/html", "-http", "0.0.0.0:8080" ] \ No newline at end of file diff --git a/main.go b/main.go index 496c6a5..a0aa684 100644 --- a/main.go +++ b/main.go @@ -385,7 +385,7 @@ func main() { handler.fs.ServeHTTP(w, r) } else { l := Landing{ - URL: fmt.Sprintf("%s/wiki.html", fullListen), + URL: "/wiki.html", } if user != "" { l.User = user