Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down