forked from HiSPARC/publicdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 839 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
31
32
33
34
FROM python:3.10
# hadolint ignore=DL3008
RUN \
apt-get update \
&& apt-get install -y --no-install-recommends wget \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /publicdb
WORKDIR /publicdb
# Install miniconda
RUN \
wget --no-verbose https://repo.continuum.io/miniconda/Miniconda3-py310_24.1.2-0-Linux-x86_64.sh -O miniconda.sh \
&& bash miniconda.sh -b -p /opt/miniconda;
# Use conda Python
ENV PATH /opt/miniconda/bin:$PATH
# Update and configure Python package managers
ENV PIP_NO_CACHE_DIR 1
ENV PIP_PROGRESS_BAR off
ENV PIP_DISABLE_PIP_VERSION_CHECK 1
RUN conda update --yes conda
# Install requirements
COPY requirements-conda.txt ./
RUN conda install --yes --file requirements-conda.txt
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY requirements-dev.txt ./
RUN pip install -r requirements-dev.txt