B: move contents of /var/capstone/dist
This commit is contained in:
parent
9ad4170b82
commit
9c70466f30
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue