diff --git a/docker/ui.dockerfile b/docker/ui.dockerfile index 9c658c0..23a8497 100644 --- a/docker/ui.dockerfile +++ b/docker/ui.dockerfile @@ -31,7 +31,8 @@ RUN npx tailwindcss -i static/index.css -o dist/output.css FROM amazonlinux:2023 COPY docker/resolv.conf /etc/resolv.conf -COPY --from=node-builder /build/dist /bin/dist +RUN mkdir -p /var/capstone +COPY --from=node-builder /build/dist /var/capstone/dist COPY --from=builder /build/ui/main /bin/main RUN mkdir -p /etc/capstone COPY secrets/config.yaml /etc/capstone diff --git a/ui/controllers/controllers.go b/ui/controllers/controllers.go index cfe4dcc..4ef1dfb 100644 --- a/ui/controllers/controllers.go +++ b/ui/controllers/controllers.go @@ -28,7 +28,7 @@ func BuildRouter(r *gin.Engine) { r.Use(cors.Default()) - r.Static("/static", "./dist") + r.Static("/static", "/var/capstone/dist") //mainpage r.GET("/", AuthMiddleware(false), LandingPage)