Commit 35e041f3 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Merge branch 'docker' into 'master'


See merge request !7
parents 25fb6941 79f29b81
Pipeline #37293 passed with stages
in 4 minutes and 34 seconds
......@@ -29,6 +29,7 @@ FROM python:3.6-stretch as build
RUN apt-get update && apt-get install -y make
RUN mkdir /install
WORKDIR /install
# We also install the -dev dependencies, to use this image for test and qa
COPY requirements-dev.txt requirements-dev.txt
RUN pip install -r requirements-dev.txt
......@@ -36,18 +37,22 @@ COPY requirements-dep.txt requirements-dep.txt
RUN pip install -r requirements-dep.txt
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
# Use docker build --build-args CACHEBUST=2 to not cache this (e.g. when you know deps have changed)
COPY nomad/ /install/nomad/
COPY nomad/ /install/nomad/
RUN python nomad/
RUN ls -la .dependencies/parsers/vasp/
RUN ls -la .dependencies/parsers/vasp/vaspparser/
# do that after the dependencies to use docker's layer caching
COPY . /install
RUN pip install .
WORKDIR /install/docs
RUN make html
find /usr/local/lib/python3.6/ -name 'tests' ! -path '*/networkx/*' -exec rm -r '{}' + && \
find /usr/local/lib/python3.6/ -name 'test' -exec rm -r '{}' + && \
find /usr/local/lib/python3.6/site-packages/ -name '*.so' -print -exec sh -c 'file "{}" | grep -q "not stripped" && strip -s "{}"' \;
# Second, create a slim final image
FROM final
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment