Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminDoran committed Aug 3, 2018
0 parents commit 9b23a26
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM alpine:3.8 as builder
LABEL REPOSITORY="gromacs" \
maintainer="[email protected]"
ENV GROMACS_VERSION 5.1.2
RUN apk add --no-cache cmake g++ libxml2 make perl \
&& wget ftp://ftp.gromacs.org/pub/gromacs/gromacs-${GROMACS_VERSION}.tar.gz
RUN tar zxfv gromacs-${GROMACS_VERSION}.tar.gz \
&& mkdir "./gromacs-${GROMACS_VERSION}/build/"
WORKDIR "./gromacs-${GROMACS_VERSION}/build"
RUN cmake .. -DGMX_BUILD_OWN_FFTW=ON -DREGRESSIONTEST_DOWNLOAD=ON \
&& make \
&& make check \
&& make install
WORKDIR "/"

FROM alpine:3.8 as app
RUN apk add --no-cache bash g++
COPY --from=builder /usr/local/gromacs /usr/local/gromacs
ENV PATH "/usr/local/gromacs/bin:${PATH}"
CMD ["gmx", "-version"]

0 comments on commit 9b23a26

Please sign in to comment.