-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (34 loc) · 1.04 KB
/
Copy pathDockerfile
File metadata and controls
41 lines (34 loc) · 1.04 KB
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
FROM python:3.7.4-alpine
LABEL Tige Phillips <tige@ignw.io>
#
# PYTHON and TOOLS
###################
RUN apk update
RUN apk add --no-cache python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
RUN pip3 install --upgrade pip setuptools
RUN apk add libffi-dev openssl-dev python3-dev
#
# Additional Python requirements
################################
COPY requirements.txt ./
RUN pip3 install -r requirements.txt
#
# Tiges' Ease of Development Stuff
###################################
RUN apk add bash openssh vim
#
# ACI Toolkit Install
#####################
RUN apk add git graphviz-dev pkgconfig gcc musl-dev
WORKDIR /opt
RUN git clone https://github.com/datacenter/acitoolkit.git
COPY ./acitoolkit-setup.py ./acitoolkit/setup.py
WORKDIR /opt/acitoolkit
RUN python setup.py install
WORKDIR /root