Skip to content

Commit

Permalink
Make Dockerfile cacheable
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowcap committed Nov 26, 2024
1 parent ceecb61 commit 55a82a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions embeddings/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ RUN pip install \
wandb==0.17.5 \
rio_stac~=0.10.0

RUN git pull && git checkout ceecb6138705cb28a5f4d3f61f22b19a2f625edb

# Move file to home directory so that relative imports work
RUN cp embeddings/all-naip.py .
RUN cp embeddings/all-sentinel.py .
Expand Down
2 changes: 1 addition & 1 deletion embeddings/all-sentinel.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def process_scene(clay, path, batchsize):
kwargs = dict(
bboxs=all_bboxs,
datestr=str(item.datetime.date()),
gsd=gsd,
gsd=GSD,
destination_bucket=EMBEDDINGS_BUCKET,
path=path,
source_bucket="sentinel-cogs",
Expand Down

0 comments on commit 55a82a8

Please sign in to comment.