Sign inSign up

fuming/uniswap_interface_front

By fuming

•Updated over 2 years ago

uniswap_interface_front

Image
0

197

fuming/uniswap_interface_front repository overview

⁠fuming/uniswap_interface_front

⁠Usage

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:
⁠Use yarn mirror

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

⁠Dockerfile

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"]

Tag summary

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