Last active
May 30, 2021 06:19
-
-
Save crossgate10/79aad5d627806212ffea81a65698d906 to your computer and use it in GitHub Desktop.
for gnuplot run in Win10 with Docker for Windows instead of WSL. Refer here --->> https://github.com/remuslazar/docker-gnuplot)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
RUN apk --no-cache --virtual .fontsinstaller add msttcorefonts-installer fontconfig \ | |
&& update-ms-fonts \ | |
&& fc-cache -f \ | |
&& apk del .fontsinstaller | |
Run rm /var/cache/apk/*; exit 0 | |
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 libgcc 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 | |
Run rm /var/cache/apk/*; exit 0 | |
WORKDIR /work | |
ENTRYPOINT ["/usr/local/bin/gnuplot"] | |
CMD ["gnuplot"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment