-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
42 lines (37 loc) · 1.62 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
FROM ubuntu:19.10
MAINTAINER Paul D. Hein <[email protected]>
CMD bash
# ==============================================================================
# INSTALL SOFTWARE VIA THE UBUNTU PACKAGE MANAGER
# ==============================================================================
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y --no-install-recommends install \
git \
curl \
build-essential \
gcc \
pkg-config \
python3 \
python3-dev \
python3-pip
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "Paul Hein"
# ==============================================================================
# ==============================================================================
# INSTALL PYTHON PACKAGES VIA PIP
# NOTE: Packages are installed in stages to avoid memory errors on DockerHub
# ==============================================================================
# Upgrading setuptools and installing wheel
RUN pip3 install --upgrade setuptools
RUN pip3 install wheel
# ==============================================================================
# ==============================================================================
# SETUP THE AUTOMATES REPOSITORY AND ENVIRONMENT
# ==============================================================================
RUN git clone https://github.com/ml4ai/automates-v2.git
ENV PYTHONPATH="/automates-v2/src:$PYTHONPATH"
WORKDIR /automates-v2
# Common-use and testing packages
RUN pip3 install -r requirements.txt
# ==============================================================================