diff --git a/Dockerfile b/Dockerfile index 3bbae04f..e430d248 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,9 @@ RUN go build -o reverse-watch main.go FROM gcr.io/distroless/base-debian12 +WORKDIR /app COPY --from=builder /app/reverse-watch /app/reverse-watch +COPY --from=builder /app/static/index.html /app/static/index.html + EXPOSE 80 -CMD ["./app/reverse-watch"] +CMD ["./reverse-watch"] diff --git a/server/server.go b/server/server.go index 56eda66e..80e9cd59 100644 --- a/server/server.go +++ b/server/server.go @@ -30,6 +30,10 @@ func New(cfg config.Config, factory repository.Factory) (*Server, error) { r.Use(rwmiddleware.FactoryMiddleware(factory)) + r.Get("/", func(w http.ResponseWriter, r *http.Request) { + http.ServeFile(w, r, "static/index.html") + }) + r.Mount("/api", api.Router()) return &Server{ diff --git a/static/index.html b/static/index.html new file mode 100644 index 00000000..95bfedd0 --- /dev/null +++ b/static/index.html @@ -0,0 +1,534 @@ + + +
+ + + + +Check if a Steam ID has a history of trade reversals
+