Avoid error if /opt already exists

This fixes the build error:
https://gitlab.com/gitlab-org/gitlab-build-images/-/jobs/156906378
This commit is contained in:
Stan Hu 2019-02-05 17:35:02 -08:00
parent 86846db132
commit 584e7c6cff
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ ENV KUBECTL_URL=https://storage.googleapis.com/kubernetes-release/release/v${KUB
# Install dependencies
RUN apk --no-cache add -U openssl curl tar gzip bash ca-certificates git python2\
&& mkdir /opt
&& mkdir -p /opt
# Install kubectl
RUN curl -L -o /usr/local/bin/kubectl ${KUBECTL_URL} \