2024-09-06 20:51:12 +00:00
|
|
|
FROM golang:1.23.1 AS build-web-stage
|
2021-07-09 14:04:28 +00:00
|
|
|
COPY build /build
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
COPY web/ /build/
|
2022-07-13 13:44:39 +00:00
|
|
|
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o web-amd64 github.com/VictoriMetrics/vmui/ && \
|
|
|
|
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o web-windows github.com/VictoriMetrics/vmui/
|
2021-07-09 14:04:28 +00:00
|
|
|
|
2024-09-08 17:26:45 +00:00
|
|
|
FROM alpine:3.20.3
|
2021-07-09 14:04:28 +00:00
|
|
|
USER root
|
|
|
|
|
|
|
|
COPY --from=build-web-stage /build/web-amd64 /app/web
|
|
|
|
COPY --from=build-web-stage /build/web-windows /app/web-windows
|
|
|
|
RUN adduser -S -D -u 1000 web && chown -R web /app
|
|
|
|
|
|
|
|
USER web
|
2024-04-15 07:07:30 +00:00
|
|
|
|
2021-07-09 14:04:28 +00:00
|
|
|
ENTRYPOINT ["/app/web"]
|