refactor!: separate runtime releases from panel source
This commit is contained in:
@@ -11,7 +11,6 @@ COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY cmd/ ./cmd/
|
||||
COPY internal/ ./internal/
|
||||
COPY image/ ./image/
|
||||
RUN CGO_ENABLED=0 go build -trimpath -o /out/dsh-mgr ./cmd/server
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
@@ -19,7 +18,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
|
||||
WORKDIR /app
|
||||
COPY --from=backend /out/dsh-mgr /usr/local/bin/dsh-mgr
|
||||
COPY --from=web /src/web/dist ./web/dist
|
||||
COPY image/ ./image/
|
||||
USER 1000:1000
|
||||
EXPOSE 8088
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 CMD ["/usr/local/bin/dsh-mgr", "-healthcheck"]
|
||||
|
||||
Reference in New Issue
Block a user