Skip to content

Commit

Permalink
DOCKERFILE: debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
simonszalai committed Jun 13, 2020
1 parent e0d8050 commit 71913e1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,22 @@ ENV WEIGHTS_URL=$WEIGHTS_URL_ARG
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
RUN aws s3 cp s3://sorterbot-weights-fbcggris/model_final.pth /sorterbot_cloud/weights/model_final.pth
RUN echo ls
RUN ls /sorterbot_cloud/weights
RUN stat -f%z /sorterbot_cloud/weights/model_final.pth
# 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 \
RUN echo $WEIGHTS_URL
# RUN aws s3 cp s3://sorterbot-weights-fbcggris/model_final.pth /sorterbot_cloud/weights/model_final.pth
RUN echo WEIGHTS_URL: $WEIGHTS_URL
RUN echo WEIGHTS_URL_ARG: $WEIGHTS_URL_ARG

# Copy source code
COPY ./src /sorterbot_cloud/src
COPY ./tests /sorterbot_cloud/tests
COPY ./config.yaml /sorterbot_cloud/config.yaml
COPY ./weights/model_final.pth /sorterbot_cloud/weights/model_final.pth
# COPY ./weights/model_final.pth /sorterbot_cloud/weights/model_final.pth

WORKDIR /sorterbot_cloud
ENV PYTHONUNBUFFERED 1
Expand Down

0 comments on commit 71913e1

Please sign in to comment.