Skip to content

Commit e0210a9

Browse files
authored
Merge branch 'master' into feature/health-check
2 parents 8bcf366 + 6149a3c commit e0210a9

3 files changed

Lines changed: 542 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ RUN go build -o reverse-watch main.go
66

77
FROM gcr.io/distroless/base-debian12
88

9+
WORKDIR /app
910
COPY --from=builder /app/reverse-watch /app/reverse-watch
11+
COPY --from=builder /app/static/index.html /app/static/index.html
12+
1013
EXPOSE 80
11-
CMD ["./app/reverse-watch"]
14+
CMD ["./reverse-watch"]

server/server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ func New(cfg config.Config, factory repository.Factory) (*Server, error) {
3030

3131
r.Use(rwmiddleware.FactoryMiddleware(factory))
3232

33+
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
34+
http.ServeFile(w, r, "static/index.html")
35+
})
36+
3337
r.Mount("/api", api.Router())
3438

3539
return &Server{

0 commit comments

Comments
 (0)