forked from TEN7-Archive/website-archiver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (21 loc) · 817 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
FROM alpine:edge
MAINTAINER Ivan Stegic [email protected]
# Update the package list and install Ansible.
RUN apk -U upgrade &&\
apk add --update --no-cache ansible && \
rm -rf /tmp/* \
/var/cache/apk/* \
/usr/lib/python3.6/site-packages/ansible/modules/network/ \
/usr/lib/python3.6/site-packages/ansible/modules/cloud/ \
/usr/lib/python3.6/site-packages/ansible/modules/windows/
# Copy the Ansible configuration files
COPY ansible-hosts /etc/ansible/hosts
COPY ansible.cfg /etc/ansible/ansible.cfg
COPY ansible /ansible
# Run the build.
RUN ansible-playbook -i /ansible/inventories/all.ini /ansible/build.yml
# Switch to the service account.
USER httrack
# Set the entrypoint and default command.
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["/app/httrack.sh"]