-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
53 lines (47 loc) · 1.29 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
52
53
FROM python:3-alpine
LABEL maintainer="Paolo Smiraglia" \
maintainer.email="paolo.smiraglia@gmail.com"
ENV OSCLI_GROUP=oscli OSCLI_USER=oscli
RUN adduser -D -s /bin/sh ${OSCLI_USER} ${OSCLI_GROUP}
RUN apk update \
&& apk add --no-cache \
curl \
jq \
vim \
&& apk add --no-cache --virtual .build-deps \
gcc \
git \
libffi-dev \
linux-headers \
musl-dev \
openssl-dev \
&& pip install --upgrade \
gnocchiclient \
pip \
python-barbicanclient \
python-ceilometerclient \
python-cinderclient \
python-cloudkittyclient \
python-designateclient \
python-fuelclient \
python-glanceclient \
python-heatclient \
python-magnumclient \
python-manilaclient \
python-mistralclient \
python-monascaclient \
python-muranoclient \
python-neutronclient \
python-novaclient \
python-openstackclient \
python-saharaclient \
python-senlinclient \
python-swiftclient \
python-troveclient \
&& apk del .build-deps \
&& rm -fr /var/cache/apk/*
COPY ./rootfs/ /
USER ${OSCLI_USER}
ENV OS_CACERT=/etc/ssl/cacerts.pem
WORKDIR /home/${OSCLI_USER}
CMD ["/bin/sh", "-l"]