forked from vyperlang/vyper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileMac
38 lines (29 loc) · 1.25 KB
/
DockerfileMac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM ubuntu:16.04
RUN apt-get update --fix-missing
RUN apt-get install -y apt-utils
RUN apt-get install -y --no-install-recommends \
gcc libc6-dev libc-dev libssl-dev libgmp-dev
RUN apt-get install -y software-properties-common python-software-properties
RUN apt-get install -y tmux python-setuptools
RUN apt-get install -y build-essential automake pkg-config libtool libffi-dev python3-cffi
RUN apt-get install -y python-dev
RUN apt-get install -y systemd libpam-systemd
RUN add-apt-repository ppa:ethereum/ethereum
RUN apt-get install -y wget unzip
ARG PYTHON_VERSION=3.6.2
RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
RUN tar xf Python-${PYTHON_VERSION}.tgz && cd Python-${PYTHON_VERSION} && ./configure && make && make install
RUN echo 'PATH="$HOME/bin/python3:$PATH"; export PATH' >> ~/.bash_profile && . ~/.bash_profile
RUN echo 'export PYTHONDONTWRITEBYTECODE=1' >> ~/.bash_profile && . ~/.bash_profile
RUN which python3
RUN which pip3
RUN apt-get install -y python3-pip
RUN apt-get install -y vim git
RUN pip3 install --upgrade cffi
COPY ./requirements-mac.txt .
RUN pip3 install -r requirements-mac.txt
RUN export LC_ALL=C.UTF-8
RUN export LANG=C.UTF-8
ADD . /code
WORKDIR /code
RUN python3 setup.py install