-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
31 lines (25 loc) · 829 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
FROM alpine:latest
MAINTAINER Jim McVea <[email protected]>
LABEL Description="Provides openstack client tools" Version="0.1"
# Alpine-based installation
# #########################
RUN apk add --update \
python-dev \
py-pip \
py-setuptools \
ca-certificates \
gcc \
libffi-dev \
openssl-dev \
musl-dev \
linux-headers \
&& pip install --upgrade --no-cache-dir pip setuptools python-openstackclient \
&& apk del gcc musl-dev linux-headers libffi-dev \
&& rm -rf /var/cache/apk/*
# Add a volume so that a host filesystem can be mounted
# Ex. `docker run -v $PWD:/data jmcvea/openstack-client`
VOLUME ["/data"]
# Default is to start a shell. A more common behavior would be to override
# the command when starting.
# Ex. `docker run -ti jmcvea/openstack-client openstack server list`
CMD ["/bin/sh"]