Skip to content

Commit 8473c2b

Browse files
committed
fix: docker file
1 parent 7128f20 commit 8473c2b

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

Dockerfile

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
11
FROM ghcr.io/foundry-rs/foundry:stable
22

33
ENV CI=true
4-
ENV PNPM_HOME="/pnpm"
5-
ENV PATH="$PNPM_HOME:$PATH"
64

75
# install node
8-
RUN apk add --no-cache \
9-
bash \
10-
nodejs npm
6+
USER root
7+
RUN apt-get update && apt-get install -y curl
8+
RUN chsh -s /bin/bash foundry
9+
10+
USER foundry
11+
SHELL ["/bin/bash", "-c"]
12+
13+
# Create a script file sourced by both interactive and non-interactive bash shells
14+
ENV BASH_ENV /home/foundry/.bash_env
15+
RUN touch "${BASH_ENV}"
16+
RUN echo '. "${BASH_ENV}"' >> ~/.bashrc
1117

12-
# install pnpm
13-
RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
18+
# Download and install nvm
19+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | PROFILE="${BASH_ENV}" bash
20+
21+
# Download and install pnpm
22+
ENV PNPM_HOME="/home/foundry/.pnpm"
23+
ENV PATH="$PNPM_HOME:$PATH"
24+
RUN curl -fsSL https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
1425

1526
WORKDIR /app
1627

1728
COPY . /app
1829

19-
RUN pnpm install && forge build
30+
RUN nvm install \
31+
&& pnpm install \
32+
&& forge build
2033

2134
ENTRYPOINT [ "/app/script/migrate.sh" ]

wagmi.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export default defineConfig({
1010
"IAdapterCompressor.sol/**.json",
1111
"ICreditAccountCompressor.sol/**.json",
1212
"ICreditSuiteCompressor.sol/**.json",
13-
"IDataCompressorV3.sol/**.json",
1413
"IGaugeCompressor.sol/**.json",
1514
"IMarketCompressor.sol/**.json",
1615
"IPeripheryCompressor.sol/**.json",

0 commit comments

Comments
 (0)