-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
30 lines (24 loc) · 1003 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Latest fedora image. It works well with the new compilation flags.
FROM fedora:39
# Install Fedora package dependencies, needed to add an explicit timezone
RUN dnf -y update
RUN dnf -y install make gmsh python3-numpy python3-devel python3-scipy python3-nose python3-pip python3-matplotlib gfortran
RUN dnf -y install suitesparse-devel blas-devel lapack-devel atlas-devel
RUN dnf -y install nano micro openssh
RUN dnf -y install jupyterlab
# Add the NumBAT source code -> Will be overwritten when used with mounted volumes! (which is good)
COPY ./ /home/EMUstack/
# Compile the Fortran code, only use when running tests or copying compiled source to host
WORKDIR /home/EMUstack/backend/fortran/
RUN make
# create useful folder
WORKDIR /home
RUN mkdir host
# getting code and setup env vars
ENV PYTHONPATH "${PYTHONPATH}:/home/EMUstack/backend/"
ENV OPENBLAS_NUM_THREADS=1
ENV OMP_NUM_THREADS=1
RUN echo -e "ulimit -s unlimited" >> /root/.bashrc
RUN source /root/.bashrc
# expose port
EXPOSE 8888