mirror of
https://github.com/Luzifer/docker-php5-nginx.git
synced 2024-11-08 14:10:06 +00:00
22 lines
453 B
Docker
22 lines
453 B
Docker
FROM ubuntu:14.04
|
|
|
|
MAINTAINER Knut Ahlers
|
|
|
|
RUN \
|
|
apt-get -y update && \
|
|
apt-get install -y ansible python-apt
|
|
|
|
ADD . /tmp/ansible
|
|
|
|
RUN \
|
|
cd /tmp/ansible && \
|
|
ansible-playbook playbook.yml -c local -i /tmp/ansible/inventory && \
|
|
apt-get purge -y ansible python-apt && \
|
|
apt-get autoremove -y && \
|
|
echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \
|
|
cd / && rm -rf /tmp/ansible && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx"]
|