-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (30 loc) · 1.18 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
FROM python:3.7-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/vyperlang/vyper" \
org.label-schema.vendor="Vyper Team" \
org.label-schema.schema-version="1.0"
# coincurve requires libgmp
RUN apt-get update && \
apt-get install -y --no-install-recommends \
apt-utils \
gcc \
git \
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"]