mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-25 20:00:06 +01:00
59c350d0d2
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-3368755 - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-3368755 - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-5291795 - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-5291795 Co-authored-by: snyk-bot <snyk-bot@snyk.io>
19 lines
537 B
Plaintext
19 lines
537 B
Plaintext
FROM golang:1.20.2 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.17.3
|
|
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
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/app/web"]
|