Skip to content

Commit c819d18

Browse files
committed
messing about with paths
1 parent d2f68c9 commit c819d18

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

Dockerfile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,28 +50,26 @@ RUN apt-get update \
5050
&& rm -rf /var/lib/apt/lists/*
5151
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/openmpi/lib
5252

53-
# Download source
53+
# Download sources
5454
RUN mkdir -p /gromacs /gromacs-src
55-
WORKDIR /tmp
55+
WORKDIR /gromacs-src
5656
RUN curl -o gromacs.tar.gz http://ftp.gromacs.org/pub/gromacs/gromacs-${GROMACS_VERSION}.tar.gz &&\
5757
echo "${GROMACS_MD5} gromacs.tar.gz" > gromacs.tar.gz.md5 &&\
5858
md5sum -c gromacs.tar.gz.md5 &&\
59-
cd /gromacs-src && tar zxf /tmp/gromacs.tar.gz &&\
60-
rm /tmp/gromacs.tar.gz /tmp/gromacs.tar.gz.md5
61-
WORKDIR /gromacs-src
62-
#COPY gromacs /gromacs-src
63-
59+
tar zxf gromacs.tar.gz &&\
60+
mv gromacs-${GROMACS_VERSION}/* .
6461

65-
# Install fftw-3.3.8 with more optimizations than the default packages
62+
# Install fftw with more optimizations than the default packages
6663
# It is not critical to run the tests here, since our experience is that the
6764
# Gromacs unit tests will catch fftw build errors too.
6865
RUN curl -o fftw.tar.gz http://www.fftw.org/fftw-${FFTW_VERSION}.tar.gz \
6966
&& echo "${FFTW_MD5} fftw.tar.gz" > fftw.tar.gz.md5 \
7067
&& md5sum -c fftw.tar.gz.md5 \
71-
&& tar -xzvf fftw.tar.gz && cd fftw-* \
68+
&& tar -xzvf fftw.tar.gz && cd fftw-${FFTW_VERSION} \
7269
&& ./configure --disable-double --enable-float --enable-sse2 --enable-avx --enable-avx2 --enable-avx512 --enable-shared --disable-static \
7370
&& make -j ${JOBS} \
74-
&& make install
71+
&& make install \
72+
&& rm fftw.tar.gz fftw.tar.gz.md5
7573

7674
# build GROMACS and run unit tests
7775
# To cater to different architectures, we build for all of them

0 commit comments

Comments
 (0)