-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (27 loc) · 860 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
31
# PROGRESS_NO_TRUNC=1 docker build -t fpod/catpod --progress plain --no-cache .
FROM python:3.11-alpine
COPY ansible.cfg catpod.yml docker.yml /etc/ansible/
COPY entrypoint.sh /srv/
RUN apk update; \
apk upgrade; \
apk add --no-cache \
docker-cli-compose \
git \
openssh-client \
; \
pip3 install --upgrade pip; \
pip3 install --upgrade virtualenv; \
pip3 install ansible; \
pip3 install docker; \
pip3 install requests; \
pip3 install python-memcached; \
# Make sure that we have the latest version of relevant
# collections. This is not always the case for collections
# that are automatically co-installed.
ansible-galaxy collection install \
community.docker \
--upgrade \
; \
chmod +x /srv/entrypoint.sh
WORKDIR /srv
ENTRYPOINT ["/srv/entrypoint.sh"]