Skip to content

Commit 7d032d5

Browse files
committed
Updated Dockerfile
1 parent f952b95 commit 7d032d5

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
FROM flatironinstitute/triqs:3.3.0 as base
1+
FROM flatironinstitute/triqs:3.3.0 AS base
22
LABEL maintainer="Igor Krivenko"
33
LABEL description="Stochastic Optimization Method for Analytic Continuation"
44
ARG APPNAME=som
55

66
USER root
77
RUN useradd -m -s /bin/bash -u 999 build && echo "build:build" | chpasswd
8+
9+
ENV SRC=/src BUILD=/home/build
10+
811
RUN apt-get update && \
9-
apt-get install -y --no-install-recommends make g++-12 apt-utils file
12+
apt-get install -y --no-install-recommends \
13+
make g++-12 apt-utils file libblas-dev libopenblas-dev
1014
RUN sh -c 'echo -e "\nrmaps_base_oversubscribe = 1" >> \
1115
/etc/openmpi/openmpi-mca-params.conf'
1216

13-
COPY requirements.txt /src/$APPNAME/requirements.txt
14-
RUN pip3 install -r /src/$APPNAME/requirements.txt
15-
1617
COPY --chown=build . $SRC/$APPNAME
1718
WORKDIR $BUILD/$APPNAME
1819
RUN chown build .
1920
USER build
2021

21-
ENV CC gcc-12
22-
ENV CXX g++-12
22+
ENV CC=gcc
23+
ENV CXX=g++
2324
RUN cmake $SRC/$APPNAME -DTRIQS_ROOT=${INSTALL} \
2425
-DCMAKE_BUILD_TYPE=Release \
2526
-DBUILD_SHARED_LIBS=ON \

0 commit comments

Comments
 (0)