LoginSignup
1
0

More than 5 years have passed since last update.

DockerでRemix (Browser-Only Solidity IDE) コンテナを作ろうとしてできなかった

Last updated at Posted at 2018-06-20

こちらを参考に。

以下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-ja

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 ja_JP.UTF-8
ENV LANG ja_JP.UTF-8
ENV LC_ALL ja_JP.UTF-8
ENV TZ Asia/Tokyo

# 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 remix

ブラウザで確認
http://localhost:8080/

すると、remixのヘッダーのみで中身がない状態

環境

Mac OSX10.11.6
Docker Version: 18.03.1-ce

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0