Skip to content

Commit

Permalink
DOCKERFILE: aws cp now multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
simonszalai committed Jun 12, 2020
1 parent a825233 commit 5bc9464
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bc9464

Please sign in to comment.