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

@ -15,7 +15,7 @@ ENV DOCKER_CHECKSUM="2d92728714d794f78619785a2c638b58b0b15e60b340de51886bf6d3730
ENV DOCKER_BIN="/usr/local/bin/docker"
# Install dependencies
RUN apk --no-cache add -U openssl tar gzip bash ca-certificates && mkdir /opt
RUN apk --no-cache add -U openssl tar gzip bash ca-certificates && mkdir -p /opt
RUN wget -q ${DOCKER_URL} && \
tar -zxf ${DOCKER_ARCHIVE} && \