Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile #184

Merged
merged 2 commits into from
Aug 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions base-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Start from the base image
FROM --platform=linux/amd64 mcr.microsoft.com/devcontainers/base:ubuntu-22.04

LABEL org.opencontainers.image.source=https://github.com/AstarNetwork/swanky-cli
LABEL org.opencontainers.image.source=https://github.com/swankyhub/swanky-cli

# Update the package lists
RUN apt-get update
Expand All @@ -13,18 +13,18 @@ RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -
RUN apt-get install -y binaryen pkg-config libssl-dev

# Download and install swanky-cli and verify the installation
RUN curl -L https://github.com/AstarNetwork/swanky-cli/releases/download/v3.0.4/swanky-v3.0.4-be91475-linux-x64.tar.gz | tar xz -C /opt && \
RUN curl -L https://github.com/swankyhub/swanky-cli/releases/download/v3.0.4/swanky-v3.0.4-be91475-linux-x64.tar.gz | tar xz -C /opt && \
ln -s /opt/swanky/bin/swanky /usr/local/bin/swanky

# Install Rustup and Rust, additional components, packages, and verify the installations
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
/bin/bash -c "source $HOME/.cargo/env && \
rustup toolchain install nightly-2023-02-07 && \
rustup default nightly-2023-02-07 && \
rustup component add rust-src --toolchain nightly-2023-02-07 && \
rustup target add wasm32-unknown-unknown --toolchain nightly-2023-02-07 && \
cargo install cargo-dylint dylint-link && \
cargo install cargo-contract --force --version 2.2.1 && \
rustup toolchain install nightly-2023-03-05 && \
rustup default nightly-2023-03-05 && \
rustup component add rust-src --toolchain nightly-2023-03-05 && \
rustup target add wasm32-unknown-unknown --toolchain nightly-2023-03-05 && \
cargo +stable install cargo-dylint dylint-link && \
cargo +stable install cargo-contract --force --version 4.0.0-alpha && \
rustc --version"

# Install Yarn 1.x
Expand All @@ -39,4 +39,4 @@ RUN node --version && \
yarn --version

# Clean up the package lists to reduce image size
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get clean && rm -rf /var/lib/apt/lists/*