Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:change csi base docker image to debian #2612

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docker/Dockerfile.csi
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ RUN go install github.com/go-delve/delve/cmd/[email protected]

# Use distroless as minimal base image to package the csi binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM alpine:3.16
RUN apk add --update curl tzdata iproute2 bash libc6-compat vim && \
rm -rf /var/cache/apk/* && \
FROM registry.cn-hangzhou.aliyuncs.com/acs/debian:10-slim-update
RUN apt-get update && apt-get install -y curl tzdata iproute2 bash libc6-i386 vim && \
apt clean all && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* /root/.cache && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone

Expand Down