Run container:
docker run -d --name uniswap_interface_front -p "3000:3000" fuming/uniswap_interface_front:5.4.1
docker-compose.yaml:
version: '3'
services:
interface:
image: fuming/uniswap_interface_front:5.4.1
container_name: interface
restart: always
volumes:
- yarn_cache:/root/uniswap-interface/.yarn/cache # Fetch step
- node_modules:/root/uniswap-interface/node_modules # Link step
ports:
- "3000:3000"
volumes:
yarn_cache:
node_modules:
Rewrite entrypoint.sh:
echo "yarn config set registry https://registry.npmmirror.com;cd /root/uniswap-interface && yarn && yarn web start" >> entrypoint.sh && chmod +x entrypoint.sh
Run container:
docker run -d --name uniswap_interface_front -p "3000:3000" -v "$(pwd)/entrypoint.sh:/root/entrypoint.sh" fuming/uniswap_interface_front:5.4.1
FROM fuming/uniswap_interface_env:base
RUN git clone https://github.com/Uniswap/interface.git /root/uniswap-interface
RUN cd /root/uniswap-interface && git checkout web/5.4.1 && mkdir -p /root/uniswap-interface/apps/web/src/utils/__generated__
RUN echo "cd /root/uniswap-interface && yarn && yarn web start" >> /root/entrypoint.sh && chmod +x /root/entrypoint.sh
WORKDIR /root
HEALTHCHECK --interval=5m --timeout=3s --retries=3 CMD curl -f http://localhost:3000 || exit 1
EXPOSE 3000
CMD ["sh", "-c", "./entrypoint.sh"]
Content type
Image
Digest
sha256:57759b9d3…
Size
318.4 MB
Last updated
over 2 years ago
docker pull fuming/uniswap_interface_front:5.4.1