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
|
FROM amazonlinux:2023
|
||||||
|
|
||||||
COPY docker/resolv.conf /etc/resolv.conf
|
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
|
COPY --from=builder /build/ui/main /bin/main
|
||||||
RUN mkdir -p /etc/capstone
|
RUN mkdir -p /etc/capstone
|
||||||
COPY secrets/config.yaml /etc/capstone
|
COPY secrets/config.yaml /etc/capstone
|
||||||
|
|
|
@ -28,7 +28,7 @@ func BuildRouter(r *gin.Engine) {
|
||||||
|
|
||||||
r.Use(cors.Default())
|
r.Use(cors.Default())
|
||||||
|
|
||||||
r.Static("/static", "./dist")
|
r.Static("/static", "/var/capstone/dist")
|
||||||
//mainpage
|
//mainpage
|
||||||
r.GET("/", AuthMiddleware(false), LandingPage)
|
r.GET("/", AuthMiddleware(false), LandingPage)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue