-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (26 loc) · 1010 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
FROM bitnami/minideb:buster
ENV PYTHONUNBUFFERED 1
ENV PATH /opt/conda/bin:${PATH}
ENV LANG C.UTF-8
ENV SHELL /bin/bash
RUN install_packages wget curl bzip2 ca-certificates openssl gnupg2 git vim python3-pygraphviz gcc pkg-config
COPY requirements.txt /requirements.txt
RUN /bin/bash -c "curl -L https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > miniconda.sh && \
bash miniconda.sh -b -p /opt/conda && \
rm miniconda.sh"
RUN /bin/bash -c "conda install -y -c conda-forge mamba && \
mamba create -q -y -c conda-forge -n sm && \
source activate sm && \
conda install -c conda-forge uwsgi xmlsec && \
pip install --upgrade pip wheel && \
pip install -r requirements.txt && \
conda clean --all -y && \
which python"
RUN echo "source activate sm" > ~/.bashrc
ENV PATH /opt/conda/envs/sm/bin:${PATH}
RUN apt-get autoremove -y && apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /code
ADD . /code/
CMD /code/run_uwsgi.sh
EXPOSE 3031