Skip to content

Commit 1636a83

Browse files
committed
fix: upgrade to debian 11.0 to fix vulnerability
add ARG default value
1 parent 8801876 commit 1636a83

File tree

3 files changed

+5
-27
lines changed

3 files changed

+5
-27
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ smb-darwin:
135135

136136
.PHONY: container
137137
container: smb
138-
docker build --no-cache -t $(IMAGE_TAG) -f ./pkg/smbplugin/dev.Dockerfile .
138+
docker build --no-cache -t $(IMAGE_TAG) -f ./pkg/smbplugin/Dockerfile .
139139

140140
.PHONY: container-linux
141141
container-linux:

pkg/smbplugin/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG ARCH
15+
FROM k8s.gcr.io/build-image/debian-base:bullseye-v1.0.0
1616

17-
FROM k8s.gcr.io/build-image/debian-base:buster-v1.6.0
18-
RUN clean-install ca-certificates cifs-utils util-linux e2fsprogs mount udev xfsprogs
17+
RUN apt update && apt-mark unhold libcap2
18+
RUN clean-install ca-certificates cifs-utils util-linux e2fsprogs mount udev xfsprogs libssl1.1
1919

2020
LABEL maintainers="andyzhangx"
2121
LABEL description="SMB CSI Driver"
22-
ARG ARCH
22+
ARG ARCH=amd64
2323

2424
COPY ./_output/${ARCH}/smbplugin /smbplugin
2525
ENTRYPOINT ["/smbplugin"]

pkg/smbplugin/dev.Dockerfile

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)