Update architecture
This commit is contained in:
+2
-3
@@ -6,7 +6,7 @@ WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY main.go ./
|
||||
COPY main.go index.html favicon.ico ./
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o nats-ui main.go
|
||||
|
||||
# Runtime stage
|
||||
@@ -17,8 +17,7 @@ RUN apk --no-cache add ca-certificates tzdata && \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/nats-ui .
|
||||
COPY index.html ./
|
||||
COPY --from=builder /app/nats-ui ./
|
||||
|
||||
# config.yaml is in .gitignore; create default in image (override via volume at runtime)
|
||||
RUN printf '%s\n' \
|
||||
|
||||
Reference in New Issue
Block a user