mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
8e9f98e725
See https://www.alpinelinux.org/posts/Alpine-3.20.1-released.html >including security fixes for: OPENSSL [CVE-2024-4741](https://security.alpinelinux.org/vuln/CVE-2024-4741) BUSYBOX [CVE-2023-42364](https://security.alpinelinux.org/vuln/CVE-2023-42364) [CVE-2023-42365](https://security.alpinelinux.org/vuln/CVE-2023-42365)
18 lines
526 B
Text
18 lines
526 B
Text
FROM golang:1.22.5 AS build-web-stage
|
|
COPY build /build
|
|
|
|
WORKDIR /build
|
|
COPY web/ /build/
|
|
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/
|
|
|
|
FROM alpine:3.20.1
|
|
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
|
|
|
|
ENTRYPOINT ["/app/web"]
|