-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 834 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (24 loc) · 834 Bytes
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
FROM python:3-alpine as builder
MAINTAINER Laurent Corbes <caf@glot.net>
ENV GANDICLIVER latest
# install base tools and build gandi.cli
RUN apk --no-cache add \
git \
gcc libc-dev \
yaml-dev \
&& BUILD=`mktemp -d` \
&& git clone --depth 1 https://github.com/Gandi/gandi.cli.git $BUILD \
&& cd $BUILD \
&& mkdir -p /tmp/local/lib/python3.7/site-packages/ \
&& export PYTHONPATH=/tmp/local/lib/python3.7/site-packages/ \
&& python setup.py install --prefix /tmp/local
FROM python:3-alpine
# get installed packages from builder stage
COPY --from=builder /tmp/local/ /usr/local/
# install ssh client binary needed by some commands
RUN apk --no-cache add openssh-client
WORKDIR /root/
ADD profile .profile
VOLUME ["/root/.config/gandi"]
#ENTRYPOINT ["/usr/local/bin/gandi"]
CMD ["/bin/sh", "--login"]