Skip to content

Commit

Permalink
terra/Dockerfile: update workspace optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
kcsongor committed Dec 6, 2023
1 parent ee94881 commit 7d2f893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terra/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM const-gen AS const-export
# This is a multi-stage docker file:
# 1. The first stage builds the contracts
# 2. The second is an empty image with only the wasm files (useful for exporting)
FROM cosmwasm/workspace-optimizer:0.12.6@sha256:e6565a5e87c830ef3e8775a9035006b38ad0aaf0a96319158c802457b1dd1d08 AS builder
FROM cosmwasm/workspace-optimizer:0.15.0@sha256:e1ba559282ea88cedeb67dd6dd541ad57d1b75c2fb1ce5f476d423458da91b4d AS builder
COPY Cargo.lock /code/
COPY Cargo.toml /code/
COPY contracts /code/contracts
Expand All @@ -13,7 +13,7 @@ COPY README.md cert.pem* /certs/
# Alpine
RUN if [ -e /certs/cert.pem ]; then cp /certs/cert.pem /etc/ssl/cert.pem; fi

RUN --mount=type=cache,target=/code/target,id=terra_classic_target --mount=type=cache,target=/usr/local/cargo/registry optimize_workspace.sh
RUN --mount=type=cache,target=/code/target,id=terra_classic_target --mount=type=cache,target=/usr/local/cargo/registry optimize.sh .

FROM scratch as artifacts
COPY --from=builder /code/artifacts /
Expand Down

0 comments on commit 7d2f893

Please sign in to comment.