Remove conflicting -U option for apk in Dockerfile (#5578)

The `--no-cache` option updates the index and avoids temporary files, making `-U` unnecessary, consistent with the subsequent `apk add`.
This commit is contained in:
Peter Dave Hello 2024-08-28 18:54:15 +08:00 committed by GitHub
parent aac1af1308
commit bf58b4d756
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ RUN go build ./cmd/nuclei
# Release # Release
FROM alpine:3.18.6 FROM alpine:3.18.6
RUN apk -U upgrade --no-cache \ RUN apk upgrade --no-cache \
&& apk add --no-cache bind-tools chromium ca-certificates && apk add --no-cache bind-tools chromium ca-certificates
COPY --from=build-env /app/nuclei /usr/local/bin/ COPY --from=build-env /app/nuclei /usr/local/bin/