Solidity开发工具Remix-IDE本地Docker安装

Remix-IDE是以太坊官方提供的智能合约开发IDE,可以在线调试。
效果如下:


Remix-IDE

下面就教大家如何在本地通过Docker来搭建Remix-IDE环境。

直接上Dockerfile:

FROM ubuntu:16.04

# install utilities
RUN \
  apt-get update && \
  apt-get install -y git curl wget screen && \
  apt-get install -y build-essential libssl-dev python && \
  apt-get install -y language-pack-zh-hans

RUN \
  apt-get install -y apt-file && \
  apt-file update && \
  apt-get install -y software-properties-common

RUN \ 
  apt-add-repository -y ppa:ethereum/ethereum && \
  apt-get update && \
  apt-get install -y solc

# set locale & timezone
RUN locale-gen zh_CN.UTF-8
ENV LANG zh_CN.UTF-8
ENV LC_ALL zh_CN.UTF-8
ENV TZ Asia/Shanghai

# install remix
RUN \
  curl -sL https://deb.nodesource.com/setup_7.x | bash && \
  apt-get install -y nodejs

RUN git clone https://github.com/ethereum/remix-ide.git
WORKDIR /remix-ide
RUN npm install
RUN npm run setupremix 

EXPOSE 8080

CMD ["npm", "start"]

编译镜像

docker build -t remix:latest .

静静等待......

运行

docker run -p 8080:8080 --name remix remix

直接通过 http://localhost:8080 即可访问本地的Remix-IDE。

进入容器

docker exec -it remix /bin/bash

你可能感兴趣的:(Solidity开发工具Remix-IDE本地Docker安装)