Skip to content

Commit 075c998

Browse files
committed
chore: change base image to debian
1 parent b7ef7d0 commit 075c998

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

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

15-
FROM centos:latest
15+
FROM k8s.gcr.io/build-image/debian-base-amd64:v2.1.3
1616

1717
# Copy nfsplugin from build _output directory
1818
COPY bin/nfsplugin /nfsplugin
1919

20-
RUN yum -y install nfs-utils epel-release jq && yum clean all
20+
# this is a workaround to install nfs-common & nfs-kernel-server and don't quit with error
21+
# https://github.com/kubernetes-sigs/blob-csi-driver/issues/214#issuecomment-781602430
22+
RUN apt update && apt install ca-certificates nfs-common nfs-kernel-server -y || true
2123

2224
ENTRYPOINT ["/nfsplugin"]

0 commit comments

Comments
 (0)