File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM alpine :latest AS builder
1+ FROM python :latest
22MAINTAINER Tamas Nepusz <ntamas@gmail.com>
33LABEL Description="Simple Docker image that contains a pre-compiled version of igraph's Python interface"
44
5- RUN apk add --no-cache --update \
6- make gcc g++ libstdc++ git python3-dev libxslt-dev libxml2-dev libc-dev \
7- libffi-dev zlib-dev py-pip libxml2 zlib libtool autoconf automake \
8- flex bison \
9- && rm -rf /var/cache/apk/*
5+ RUN pip3 install python-igraph cairocffi
106
11- RUN pip3 install git+https://github.com/igraph/python-igraph
12- RUN pip3 install cairocffi
13-
14- FROM alpine:latest
15-
16- RUN apk add --no-cache --update \
17- python3 libstdc++ libxml2 libxslt zlib cairo \
18- && rm -rf /var/cache/apk/*
19-
20- COPY --from=builder /usr/lib/python3.7/site-packages/cairocffi /usr/lib/python3.7/site-packages/cairocffi
21- COPY --from=builder /usr/lib/python3.7/site-packages/igraph /usr/lib/python3.7/site-packages/igraph
22- COPY --from=builder /usr/bin/igraph /usr/bin
23-
24- CMD /usr/bin/igraph
7+ CMD /usr/local/bin/igraph
258
You can’t perform that action at this time.
0 commit comments