Skip to content

Commit

Permalink
fix extra context docker build bug (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
blahBlahhhJ authored Sep 11, 2024
1 parent 5b685c3 commit a91ef81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/tpu/Dockerfile.incremental
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ ADD . /opt/levanter

# Add $EXTRA_CTX to the same location as in local machine.
# it's already in the image, so we don't need to copy it. just move it if we set EXTRA_CTX
RUN if [ -f ".mnt" ]; then mkdir -p $(dirname $EXTRA_CTX) && mv .mnt $EXTRA_CTX; fi
RUN if [ -f ".mnt" ] || [ -d ".mnt" ]; then mkdir -p $(dirname $EXTRA_CTX) && mv .mnt $EXTRA_CTX; fi
2 changes: 1 addition & 1 deletion src/levanter/infra/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def copy_extra_ctx(extra_ctx):
mount_dst = Path(".mnt")
_cp(extra_ctx, mount_dst)
try:
yield mount_dst
yield extra_ctx
finally:
_rm(mount_dst)
else:
Expand Down

0 comments on commit a91ef81

Please sign in to comment.