Skip to content
Snippets Groups Projects
Commit 93081b50 authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

add && apk --no-cache add \

        --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
        hdf5 \
    && apk --no-cache add --virtual .builddeps.edge \
        --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
    hdf5-dev \
parent 013591be
No related branches found
No related tags found
No related merge requests found
...@@ -2,63 +2,69 @@ FROM alpine:3.6 ...@@ -2,63 +2,69 @@ FROM alpine:3.6
LABEL maintainer="Jacques.Grelet_at_ird.fr" LABEL maintainer="Jacques.Grelet_at_ird.fr"
ENV PACKAGES="\ ENV PACKAGES="\
dumb-init \ dumb-init \
musl \ musl \
libc6-compat \ libc6-compat \
linux-headers \ linux-headers \
build-base \ build-base \
bash \ bash \
make \ make \
git \ git \
cmake \ cmake \
netcdf-bin \ libxml2 \
libnetcdf-dev \ libxml2-dev \
libxml2 \ # hdf5 \
libxml2-dev \ # hdf5-dev \
hdf5 \ netcdf-bin \
hdf5-dev \ libnetcdf-dev \
ca-certificates \ ca-certificates \
libgcc \ libgcc \
libstdc++ \ libstdc++ \
tcl \ tcl \
tk \ tk \
libssl1.0 \ libssl1.0 \
net-tools \ net-tools \
iputils-ping \ iputils-ping \
" "
ENV PYTHON_PACKAGES="\ ENV PYTHON_PACKAGES="\
numpy \ numpy \
matplotlib \ matplotlib \
scipy \ scipy \
https://github.com/matplotlib/basemap/archive/v1.1.0.tar.gz \ https://github.com/matplotlib/basemap/archive/v1.1.0.tar.gz \
toml \ toml \
pynmea2 \ pynmea2 \
pySerial \ pySerial \
netCDF4 \ netCDF4 \
seawater \ seawater \
PyInstaller \ PyInstaller \
PySimpleGUI \ PySimpleGUI \
PySimpleGUIQt \ PySimpleGUIQt \
ConfigParser \ ConfigParser \
PySide2 \ PySide2 \
PyAstronomy \ PyAstronomy \
" "
RUN apk add --no-cache --virtual build-dependencies python3 \ RUN apk add --no-cache --virtual build-dependencies python3 \
&& apk add --virtual build-runtime \ && apk add --virtual build-runtime \
build-base python3-dev freetype-dev pkgconfig \ build-base python3-dev freetype-dev pkgconfig \
&& ln -s /usr/include/locale.h /usr/include/xlocale.h \ && ln -s /usr/include/locale.h /usr/include/xlocale.h \
&& python3 -m ensurepip \ && python3 -m ensurepip \
&& rm -r /usr/lib/python*/ensurepip \ && rm -r /usr/lib/python*/ensurepip \
&& pip3 install --upgrade pip setuptools \ && pip3 install --upgrade pip setuptools \
&& ln -sf /usr/bin/python3 /usr/bin/python \ && ln -sf /usr/bin/python3 /usr/bin/python \
&& ln -sf pip3 /usr/bin/pip \ && ln -sf pip3 /usr/bin/pip \
&& rm -r /root/.cache \ && rm -r /root/.cache \
&& pip install --no-cache-dir $PYTHON_PACKAGES \ && apk --no-cache add \
&& apk del build-runtime \ --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
&& apk add --no-cache --virtual build-dependencies $PACKAGES \ hdf5 \
&& rm -rf /var/cache/apk/* && apk --no-cache add --virtual .builddeps.edge \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
hdf5-dev \
&& pip install --no-cache-dir $PYTHON_PACKAGES \
&& apk del build-runtime \
&& apk add --no-cache --virtual build-dependencies $PACKAGES \
&& rm -rf /var/cache/apk/*
VOLUME /data VOLUME /data
RUN groupadd -r scientifiques && useradd -r -g scientifiques -p antea science RUN groupadd -r scientifiques && useradd -r -g scientifiques -p antea science
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment