diff --git a/pkg/smbplugin/Dockerfile b/pkg/smbplugin/Dockerfile index 7429e59eb..87dbc05a6 100644 --- a/pkg/smbplugin/Dockerfile +++ b/pkg/smbplugin/Dockerfile @@ -17,7 +17,7 @@ FROM k8s.gcr.io/build-image/debian-base:bullseye-v1.1.0 RUN apt update && apt-mark unhold libcap2 RUN clean-install ca-certificates cifs-utils util-linux e2fsprogs mount udev xfsprogs # install updated packages to fix CVE issues -RUN clean-install libgmp10 bsdutils libssl1.1 openssl +RUN clean-install libgmp10 bsdutils libssl1.1 openssl libc6 libc-bin libsystemd0 LABEL maintainers="andyzhangx" LABEL description="SMB CSI Driver" diff --git a/pkg/smbplugin/Windows.Dockerfile b/pkg/smbplugin/Windows.Dockerfile index bcdc26182..bffa69bf5 100644 --- a/pkg/smbplugin/Windows.Dockerfile +++ b/pkg/smbplugin/Windows.Dockerfile @@ -6,7 +6,8 @@ FROM mcr.microsoft.com/windows/nanoserver:${OSVERSION} LABEL description="CSI SMB plugin" ARG ARCH=amd64 -COPY ./_output/${ARCH}/smbplugin.exe /smbplugin.exe +ARG binary=./_output/${ARCH}/smbplugin.exe +COPY ${binary} /smbplugin.exe COPY --from=core /Windows/System32/netapi32.dll /Windows/System32/netapi32.dll USER ContainerAdministrator ENTRYPOINT ["/smbplugin.exe"]