-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (45 loc) · 1.66 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:kinetic
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update; \
apt-get -y install \
aoflagger-dev \
automake \
build-essential \
clang \
curl \
cython3 \
git \
jq \
lcov \
libatlas3-base \
libcfitsio-dev \
liberfa-dev \
libssl-dev \
libtool \
pkg-config \
python3-astropy \
python3-dev \
python3-ipykernel \
python3-ipython \
python3-matplotlib \
python3-numpy \
python3-pandas \
python3-scipy \
python3-seaborn \
python3-six \
unzip \
wget \
zip \
; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
apt-get -y autoremove;
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1
# pre-installl deps
RUN pip install --no-cache-dir astropy==5.* autopage boto3==1.* cffi cliff cmd2 cryptography debtcollector dogpile.cache importlib-metadata inotify==0.2.* iso8601 jsonpatch jsonpointer keystoneauth1 matplotlib msgpack netaddr netifaces nptyping numpy openstacksdk os-service-types osc-lib oslo.config oslo.serialization platformdirs PrettyTable psycopg2-binary==2.* pycparser pyperclip python-cinderclient python-keystoneclient python-novaclient python-openstackclient requests==2.* rfc3986 scipy setuptools simplejson stevedore tabulate tenacity==8.* typing-extensions tzdata wheel wrapt zipp
# copy the repository into the container in the /app directory
ADD . /app
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
# install the python module in the container
RUN pip install .
ENTRYPOINT /bin/bash