2020-12-03 05:37:23 -08:00
|
|
|
# This is a multi-stage docker file, first stage builds contracts
|
|
|
|
# And the second one creates node.js environment to deploy them
|
2021-10-04 04:52:11 -07:00
|
|
|
FROM cosmwasm/workspace-optimizer:0.12.1@sha256:1508cf7545f4b656ecafa34e29c1acf200cdab47fced85c2bc076c0c158b1338 AS builder
|
2020-12-03 05:37:23 -08:00
|
|
|
ADD Cargo.lock /code/
|
|
|
|
ADD Cargo.toml /code/
|
|
|
|
ADD contracts /code/contracts
|
2022-01-07 07:43:53 -08:00
|
|
|
ADD packages /code/packages
|
2020-12-03 05:37:23 -08:00
|
|
|
RUN optimize_workspace.sh
|
|
|
|
|
|
|
|
# Contract deployment stage
|
2021-10-04 04:52:11 -07:00
|
|
|
FROM node:16-buster-slim@sha256:93c9fc3550f5f7d159f282027228e90e3a7f8bf38544758024f005e82607f546
|
2020-12-03 05:37:23 -08:00
|
|
|
|
2021-07-05 04:17:07 -07:00
|
|
|
RUN apt update && apt install netcat curl jq -y
|
2020-12-03 05:37:23 -08:00
|
|
|
|
|
|
|
WORKDIR /app/tools
|
|
|
|
|
|
|
|
COPY --from=builder /code/artifacts /app/artifacts
|
|
|
|
ADD ./artifacts/cw20_base.wasm /app/artifacts/
|
|
|
|
ADD ./tools /app/tools
|