forked from Dexaran/viper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (20 loc) · 861 Bytes
/
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
FROM python:3.6-slim
# Specify label-schema specific arguments and labels.
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="viper" \
org.label-schema.description="Viper is an experimental programming language" \
org.label-schema.url="https://viper.readthedocs.io/en/latest/" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/ethereum/viper" \
org.label-schema.vendor="Ethereum" \
org.label-schema.schema-version="1.0"
# coincurve requires libgmp
RUN apt-get update && \
apt-get install -y --no-install-recommends apt-utils gcc libc6-dev libc-dev libssl-dev libgmp-dev && \
rm -rf /var/lib/apt/lists/*
ADD . /code
WORKDIR /code
RUN python setup.py install && \
apt-get purge -y --auto-remove apt-utils gcc libc6-dev libc-dev libssl-dev