Skip to content

Commit a310852

Browse files
committed
feat: updated minimal Docker image file; we don't need to compile igraph in Docker now
1 parent 1d3a465 commit a310852

1 file changed

Lines changed: 3 additions & 20 deletions

File tree

docker/minimal/Dockerfile

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1-
FROM alpine:latest AS builder
1+
FROM python:latest
22
MAINTAINER Tamas Nepusz <ntamas@gmail.com>
33
LABEL 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

0 commit comments

Comments
 (0)