Skip to content

Commit

Permalink
Add option to customize token bridge branch
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Mar 28, 2024
1 parent 8246819 commit 00862c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ services:
- geth
- sequencer
pid: host
build: tokenbridge/
build:
context: tokenbridge/
args:
TOKEN_BRIDGE_BRANCH: ${TOKEN_BRIDGE_BRANCH:-main}
environment:
- ARB_URL=http://sequencer:8547
- ETH_URL=http://geth:8545
Expand Down
3 changes: 2 additions & 1 deletion tokenbridge/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM node:16-bullseye-slim
ARG TOKEN_BRIDGE_BRANCH=main
RUN apt-get update && \
apt-get install -y git docker.io python3 build-essential
WORKDIR /workspace
RUN git clone https://github.com/OffchainLabs/token-bridge-contracts.git ./
RUN git clone -b ${TOKEN_BRIDGE_BRANCH} https://github.com/OffchainLabs/token-bridge-contracts.git ./
RUN yarn install
RUN yarn build
ENTRYPOINT ["yarn"]

0 comments on commit 00862c2

Please sign in to comment.