Skip to content

Commit

Permalink
chore: add foundy to the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ns212 committed Jun 21, 2024
1 parent a56a656 commit c8bc155
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sdk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:22-slim
EXPOSE 4000

RUN apt-get update \
&& apt-get install --no-install-recommends -y tini curl ca-certificates \
&& apt-get install --no-install-recommends -y tini curl ca-certificates git \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
Expand All @@ -13,6 +13,11 @@ RUN corepack enable \
&& npm ci \
&& npm run build

RUN curl -L https://foundry.paradigm.xyz | bash && \
. /root/.bashrc && \
foundryup && \
mv /root/.foundry/bin/* /usr/local/bin

USER node
RUN mkdir /home/node/.npm/
COPY --chown=node:node . .
Expand Down

0 comments on commit c8bc155

Please sign in to comment.