Skip to content

Commit 98235d2

Browse files
committed
hotfix: update dockerfile to include Swagger UI static files
1 parent 18bd20f commit 98235d2

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ RUN update-ca-certificates
1919

2020
WORKDIR /app
2121
COPY --from=builder /go/bin/managed-api /app/managed-api
22+
COPY --from=builder /go/bin/static /app/static
2223

2324
ENTRYPOINT ["/app/managed-api"]

internal/platform/rest/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func NewServer(l zerolog.Logger) (*Server, error) {
4848
v1.GET("health", handler.Health())
4949
v1.POST("process", middleware.AuthMiddleware(), process.PostProcess(l))
5050
v1.POST("webhook", webhook.PostReceiveWebhook(l))
51-
v1.StaticFile("docs", "./internal/platform/rest/static/index.html")
51+
v1.StaticFile("docs", "./static/index.html")
5252
if config.Configuration.Api.DebugMode {
5353
v1.POST("debug", handler.Debug())
5454
}
File renamed without changes.

0 commit comments

Comments
 (0)