Skip to content

Commit

Permalink
Restore Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vlauciani committed Sep 10, 2024
1 parent 6f18a74 commit 9e66dae
Showing 1 changed file with 23 additions and 36 deletions.
59 changes: 23 additions & 36 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,35 @@ FROM debian:bullseye-slim
LABEL maintainer="Raffaele Di Stefano <[email protected]>"
ENV DEBIAN_FRONTEND=noninteractive

# Installing all needed applications and dependencies for pyrocko
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-dev \
gcc \
g++ \
gfortran \
build-essential \
libglib2.0-0 \
libglib2.0-dev \
libfftw3-dev \
libsqlite3-dev \
libproj-dev \
libgeos-dev \
libnetcdf-dev \
liblapack-dev \
libatlas-base-dev \
systemd \
wget \
zip \
curl \
vim \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Set environment variables for numpy
ENV OPENBLAS_NUM_THREADS=1 \
OMP_NUM_THREADS=1 \
NUMEXPR_NUM_THREADS=1 \
MKL_NUM_THREADS=1
# Installing all needed applications
RUN apt-get clean \
&& apt-get update \
&& apt-get dist-upgrade -y --no-install-recommends \
&& apt-get install -y \
python3 \
python3-pip \
gcc \
build-essential \
systemd \
wget \
zip \
curl \
vim

# Adding python3 libraries
RUN pip3 install --no-cache-dir --upgrade pip setuptools wheel
RUN pip3 install --no-cache-dir numpy
RUN pip3 install --no-cache-dir obspy
RUN pip3 install --no-cache-dir pyrocko
RUN pip3 install --no-cache-dir plotly sklearn scipy pandas geographiclib
RUN python3 -m pip install numpy
RUN python3 -m pip install obspy
RUN python3 -m pip install pyrocko
RUN python3 -m pip install plotly
RUN python3 -m pip install sklearn
RUN python3 -m pip install scipy
RUN python3 -m pip install pandas
RUN python3 -m pip install geographiclib

COPY ./dbona_magnitudes_stations_corrections_extended_mq.csv /opt/dbona_magnitudes_stations_corrections_extended_mq.csv
COPY ./pyml.py /opt/pyml.py
COPY entrypoint.sh /opt

#
WORKDIR /opt
ENTRYPOINT ["bash", "/opt/entrypoint.sh"]

0 comments on commit 9e66dae

Please sign in to comment.