diff --git a/terra/Dockerfile b/terra/Dockerfile index 526b95e60b..f16757b059 100644 --- a/terra/Dockerfile +++ b/terra/Dockerfile @@ -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 @@ -12,7 +12,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=/target,id=terra_classic_target --mount=type=cache,target=/usr/local/cargo/registry optimize_workspace.sh +RUN --mount=type=cache,target=/target,id=terra_classic_target --mount=type=cache,target=/usr/local/cargo/registry optimize.sh . FROM scratch as artifacts COPY --from=builder /code/artifacts /