fix: dockerfile.dev to create /opt/bin first (#13794)

This commit is contained in:
Poorna K 2021-11-30 15:24:39 -08:00 committed by GitHub
parent 9ec197f2e8
commit 1485a5bf3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,11 +4,13 @@ LABEL maintainer="MinIO Inc <dev@min.io>"
ENV PATH=/opt/bin:$PATH
RUN mkdir -p /opt/bin && chmod -R 777 /opt/bin
COPY minio /opt/bin
COPY dockerscripts/docker-entrypoint.sh /usr/bin/
RUN mkdir -p /opt/bin && chmod -R 777 /opt/bin && \
chmod +x /opt/bin/minio && \
RUN chmod +x /opt/bin/minio && \
chmod +x /usr/bin/docker-entrypoint.sh
EXPOSE 9000