-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (26 loc) · 766 Bytes
/
Dockerfile
File metadata and controls
36 lines (26 loc) · 766 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
32
33
34
35
36
ARG ALPINE_VERSION=3.8
FROM alpine:${ALPINE_VERSION}
LABEL maintainer="Gabriele Diener <g.diener@me.com>" \
image="gdiener/ansible" \
version="1.0" \
tag="1.0" \
vendor="gdiener" \
description="Ansible command line tools." \
license="MIT"
ARG DEPS=openssh
ARG UID=1000
ARG GID=1000
ARG UNAME=ansible
ARG GNAME=ansible
ARG ANSIBLE_VERSION=2.5.5-r0
ENV SSH_KEY ''
RUN apk --no-cache add ansible=${ANSIBLE_VERSION} ${DEPS}
RUN addgroup -g ${GID} -S ${GNAME} && \
adduser -u ${UID} -S -G ${GNAME} ${UNAME}
USER ${UID}:${GID}
RUN mkdir -p /home/${UNAME}/.ssh/
COPY src/entrypoint.sh /bin/entrypoint
WORKDIR /workspace
VOLUME [ "/workspace", "/etc/ansible" ]
ENTRYPOINT [ "entrypoint" ]
CMD [ "ansible", "-h" ]