Skip to content

Commit

Permalink
try prebuilt dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Feb 21, 2024
1 parent 754eee6 commit 2beafc5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ RUN mkdir -p /etc/apt/keyrings && \
node --version && \
npm --version

# go
ENV PATH="${PATH}:/usr/local/go/bin"
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 && \
go version

# foundry
ENV PATH="${PATH}:/root/.foundry/bin"
RUN curl -L https://foundry.paradigm.xyz/ | bash && \
Expand All @@ -39,3 +46,11 @@ WORKDIR /app

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN pnpm run -r build

FROM mud AS store-indexer
WORKDIR /app/packages/store-indexer
EXPOSE 3001

FROM mud AS faucet
WORKDIR /app/packages/faucet
EXPOSE 3002
4 changes: 4 additions & 0 deletions Dockerfile.render
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ghcr.io/latticexyz/mud:sha-8193136

RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install
RUN pnpm run -r build
8 changes: 4 additions & 4 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
plan: standard
region: ohio
runtime: docker
dockerfilePath: ./Dockerfile
dockerfilePath: ./Dockerfile.render
dockerContext: ./packages/store-indexer
dockerCommand: pnpm tsx bin/postgres-indexer
envVars:
Expand All @@ -21,7 +21,7 @@ services:
plan: standard
region: ohio
runtime: docker
dockerfilePath: ./Dockerfile
dockerfilePath: ./Dockerfile.render
dockerContext: ./packages/store-indexer
dockerCommand: pnpm tsx bin/postgres-indexer
envVars:
Expand All @@ -41,7 +41,7 @@ services:
runtime: docker
domains:
- base-mainnet-indexer.temp.offchain.dev
dockerfilePath: ./Dockerfile
dockerfilePath: ./Dockerfile.render
dockerContext: ./packages/store-indexer
dockerCommand: pnpm tsx bin/postgres-frontend
envVars:
Expand All @@ -58,7 +58,7 @@ services:
runtime: docker
domains:
- redstone-holesky-indexer.temp.offchain.dev
dockerfilePath: ./Dockerfile
dockerfilePath: ./Dockerfile.render
dockerContext: ./packages/store-indexer
dockerCommand: pnpm tsx bin/postgres-frontend
envVars:
Expand Down

0 comments on commit 2beafc5

Please sign in to comment.