File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ FROM ubuntu:20.04
4
4
# Enable "exit on error" and "pipefail" mode
5
5
SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
6
6
7
+ # Set non-interactive environment variables for package installation
8
+ ENV DEBIAN_FRONTEND=noninteractive
9
+
7
10
# Update package lists and install required packages
8
11
RUN apt-get update && apt-get install -y \
9
12
build-essential \
@@ -25,15 +28,28 @@ RUN wget https://go.dev/dl/go1.20.linux-amd64.tar.gz && \
25
28
source ~/.bashrc
26
29
27
30
# Install PNPM and Yarn
31
+ # Install Node.js
32
+ RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
33
+ apt-get install -y nodejs
34
+
35
+ # Install PNPM
28
36
RUN npm install -g pnpm
29
37
30
38
# Install Rust
31
39
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
32
40
source ~/.bashrc
33
41
34
42
# Install Foundry
35
- RUN curl -L https://foundry.paradigm.xyz | bash && \
36
- source ~/.bashrc
43
+ RUN mkdir -p $HOME/.foundry/bin && \
44
+ curl -o $HOME/.foundry/bin/foundryup https://raw.githubusercontent.com/foundry-rs/foundry/master/foundryup/foundryup && \
45
+ chmod +x $HOME/.foundry/bin/foundryup && \
46
+ mkdir -p $HOME/.foundry/share/man/man1 && \
47
+ echo >> $HOME/.bashrc && echo "export PATH=\"\$ PATH:$HOME/.foundry/bin\" " >> $HOME/.bashrc && \
48
+ echo "source $HOME/.bashrc" >> $HOME/.bashrc
49
+ RUN export PATH="$PATH:$HOME/.foundry/bin"
50
+
51
+ ENV GOROOT=/usr/lib/go
52
+ ENV PATH="$PATH:$HOME/.foundry/bin"
37
53
38
54
# Set up working directory
39
55
WORKDIR /app
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ services:
4
4
build :
5
5
context : .
6
6
dockerfile : Dockerfile
7
+ environment :
8
+ - GOROOT=/usr/lib/go
9
+ - PATH=$PATH:/root/.foundry/bin
7
10
volumes :
8
11
- ./deploy-scripts/setup.sh:/app/setup.sh
9
12
command : /app/setup.sh
You can’t perform that action at this time.
0 commit comments