-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Kevin Ingersoll <[email protected]> Co-authored-by: alvarius <[email protected]> Co-authored-by: Will Cory <[email protected]>
- Loading branch information
1 parent
d52e7c7
commit 80a2641
Showing
4 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@latticexyz/services": patch | ||
--- | ||
|
||
The build phase of services now works on machines with older protobuf compilers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
node_modules | ||
**/node_modules | ||
.gitignore | ||
*.md | ||
dist | ||
**/dist | ||
**/out/ | ||
**/cache/ | ||
**/bindings/ | ||
**/artifacts/ | ||
**/abi/ | ||
**/broadcast/ | ||
**/deploys/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM docker.io/library/debian:bullseye-slim as base | ||
ENV SHELL /bin/bash | ||
|
||
WORKDIR /opt | ||
RUN apt-get -y update --fix-missing && \ | ||
apt-get -y upgrade && \ | ||
apt-get install -y --no-install-recommends \ | ||
libssl-dev make cmake graphviz \ | ||
git pkg-config curl time rhash ca-certificates jq \ | ||
python3 python3-pip lsof ruby ruby-bundler git-restore-mtime xz-utils zstd unzip gnupg protobuf-compiler \ | ||
wget net-tools iptables iproute2 iputils-ping ed zlib1g-dev wabt && \ | ||
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ | ||
apt-get install -y nodejs | ||
|
||
# foundry | ||
RUN curl -L https://foundry.paradigm.xyz/ | bash && \ | ||
${HOME}/.foundry/bin/foundryup \ | ||
&& forge --version \ | ||
&& cast --version \ | ||
&& anvil --version \ | ||
&& chisel --version | ||
# go | ||
RUN wget https://dl.google.com/go/go1.20.4.linux-amd64.tar.gz && \ | ||
# -C to move to given directory | ||
tar -C /usr/local/ -xzf go1.20.4.linux-amd64.tar.gz | ||
# pnpm | ||
RUN npm install pnpm --global && pnpm --version | ||
|
||
FROM base AS builder | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
ENV PATH="${PATH}:/usr/local/go/bin" | ||
ENV PATH="${PATH}:/root/.foundry/bin" | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile | ||
RUN pnpm run -r build | ||
|
||
FROM builder AS store-indexer | ||
WORKDIR /app/packages/store-indexer | ||
EXPOSE 3001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters