forked from skair39/milagro-crypto-c
/
Dockerfile
48 lines (40 loc) · 1.08 KB
/
Dockerfile
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
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:latest AS downloader
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates
ENV GOVERSION 1.9.1
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
&& wget -nv https://storage.googleapis.com/golang/go$GOVERSION.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf go$GOVERSION.linux-amd64.tar.gz
FROM ubuntu:latest
# Install and configure GO
ENV GOPATH /go
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
COPY --from=downloader /usr/local/go /usr/local/
RUN dpkg --add-architecture i386 \
&& apt-get update && apt-get install -y --no-install-recommends \
astyle \
ca-certificates \
cmake \
doxygen \
doxygen-latex \
g++ \
g++-multilib \
gcc \
git \
lcov \
make \
mingw-w64 \
parallel \
python-pip \
python-setuptools\
wine \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& go get github.com/stretchr/testify/assert \
&& pip install --upgrade pip \
&& pip install \
autopep8 \
cffi \
wheel
CMD ["/bin/bash"]