B: move contents of /var/capstone/dist

This commit is contained in:
Preston Baxter 2023-11-23 12:40:50 -06:00
parent 9ad4170b82
commit 9c70466f30
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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)