forked from vyperlang/vyper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (23 loc) · 1.1 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
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="Vyper" \
org.label-schema.description="Vyper is an experimental programming language" \
org.label-schema.url="https://vyper.readthedocs.io/en/latest/" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/ethereum/vyper" \
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
# Pass `--addopts "--version"` because want to execute `python setup.py test` to include test dependencies in built docker-image, but avoid to execute the whole test suite here.
RUN python setup.py install && \
python setup.py test --addopts "--version" && \
apt-get purge -y --auto-remove apt-utils gcc libc6-dev libc-dev libssl-dev
ENTRYPOINT ["/usr/local/bin/vyper"]