From 5bc946478353f0aae2403c1eaabf10b9028e83a7 Mon Sep 17 00:00:00 2001 From: Simon Szalai Date: Fri, 12 Jun 2020 18:47:32 +0200 Subject: [PATCH] DOCKERFILE: aws cp now multiline --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 20654f3..da17f9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,16 +37,17 @@ ENV WEIGHTS_URL=$WEIGHTS_URL_ARG # aws s3 cp ${WEIGHTS_URL} /sorterbot_cloud/weights/model_final.pth ; \ # fi ; -RUN \ +# RUN \ # Install AWS CLI - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" ; \ - unzip awscliv2.zip ; \ - ./aws/install ; \ +RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +RUN unzip awscliv2.zip +RUN ./aws/install # Download weights from S3 # --profile ${AWS_PROFILE} \ # --mount=type=secret,id=aws_credentials,dst=/root/.aws/credentials \ # --mount=type=secret,id=aws_config,dst=/root/.aws/config \ - aws s3 cp ${WEIGHTS_URL} /sorterbot_cloud/weights/model_final.pth ; +RUN echo $WEIGHTS_URL +RUN aws s3 cp $WEIGHTS_URL /sorterbot_cloud/weights/model_final.pth # Copy source code COPY ./src /sorterbot_cloud/src