-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile.dash
31 lines (20 loc) · 952 Bytes
/
Dockerfile.dash
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
FROM ubuntu:22.04
MAINTAINER Mingxun Wang "[email protected]"
################## INSTALLATION ######################
RUN apt-get update && apt-get install -y git lftp libarchive-dev libhdf5-serial-dev netcdf-bin libnetcdf-dev wget
# Install Mamba
ENV CONDA_DIR /opt/conda
RUN wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O ~/miniforge.sh && /bin/bash ~/miniforge.sh -b -p /opt/conda
ENV PATH=$CONDA_DIR/bin:$PATH
# Adding to bashrc
RUN echo "export PATH=$CONDA_DIR:$PATH" >> ~/.bashrc
# Forcing version of Python
RUN mamba create -n py311 python=3.10 -y
COPY requirements-dash.txt .
RUN /bin/bash -c 'source activate py311 && pip install -r requirements-dash.txt'
# Installing MassQL
RUN /bin/bash -c 'source activate py311 && pip install git+https://github.com/mwang87/MassQueryLanguage.git'
# Datashader
RUN mamba install -c conda-forge -y datashader -n py311
COPY . /app
WORKDIR /app