Skip to content

Commit

Permalink
feat(protocol): add Dockerfile for packages/protocol use for future t…
Browse files Browse the repository at this point in the history
…esting
  • Loading branch information
tquangtuyen committed May 12, 2024
1 parent dd8725f commit eed6007
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/protocol/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

FROM ghcr.io/foundry-rs/foundry:latest as source

FROM base AS build
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN apt-get -yq update && \
apt-get -yqq install ssh git python3 python3-dev curl

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install

COPY --from=source /usr/local/bin/forge /usr/local/bin/forge
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm compile

CMD sleep infinity

0 comments on commit eed6007

Please sign in to comment.