-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
31 lines (25 loc) · 1.01 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
FROM alpine:latest
MAINTAINER "Remus Lazar <[email protected]>"
RUN apk --no-cache --virtual .fontsinstaller add msttcorefonts-installer fontconfig \
&& update-ms-fonts \
&& fc-cache -f \
&& apk del .fontsinstaller \
&& rm /var/cache/apk/*
ENV GDFONTPATH=/usr/share/fonts/truetype/msttcorefonts/
# Install gnuplot from source, to make sure we do have GD support etc.
RUN apk --update add libgd libpng libjpeg libwebp libjpeg-turbo cairo pango lua readline \
&& apk add --virtual .gnuplotbuild git gcc g++ libtool make automake autoconf cairo-dev pango-dev gd-dev lua-dev readline-dev libpng-dev libjpeg-turbo-dev libwebp-dev \
&& mkdir -p /src && cd /src \
&& git clone https://git.code.sf.net/p/gnuplot/gnuplot-main gnuplot-gnuplot-main \
&& cd gnuplot-gnuplot-main \
&& ./prepare \
&& ./configure \
&& make \
&& make install \
&& cd / && rm -rf /src/gnuplot-gnuplot-main \
&& apk del .gnuplotbuild \
&& mkdir -p /work \
&& rm /var/cache/apk/*
WORKDIR /work
ENTRYPOINT ["/usr/local/bin/gnuplot"]
CMD ["--help"]