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 npm and solana versions and install anchor #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
16 changes: 10 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,24 @@ RUN mkdir -p /project
RUN chown -R 999:999 /project
RUN chmod -R 777 /project

RUN npm install -g npm@7.16.0
RUN npm install -g npm@7.16.0
RUN npm install -g npm@8.13.1
RUN npm install -g npm@8.13.1


# SER newuser
# WORKDIR /home/newuser

#USER newuser
#WORKDIR /home/newuser

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
RUN bash -c "$(curl -sSfL https://release.solana.com/v1.5.7/install)"
RUN bash -c "$(curl -sSfL https://release.solana.com/v1.10.29/install)"
RUN . $HOME/.cargo/env
ENV PATH="/root/.local/share/solana/install/active_release/bin:${PATH}"
ENV PATH="/root/.local/share/solana/install/active_release/bin:/root/.cargo/bin:${PATH}"
ENV RUST_LOG="solana_runtime::system_instruction_processor=trace,solana_runtime::message_processor=debug,solana_bpf_loader=debug,solana_rbpf=debug"

# install anchor and it's dependencies
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y pkg-config libudev-dev libssl-dev
RUN cargo install --git https://github.com/project-serum/anchor anchor-cli --locked

WORKDIR /project

ENTRYPOINT ["/bin/bash"]
Expand Down