To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / deploy / docker / Dockerfile.in @ 1590:c18460da6620
History | View | Annotate | Download (442 Bytes)
| 1 | 1587:d8949733849d | Chris | |
|---|---|---|---|
| 2 | FROM ubuntu:16.04 |
||
| 3 | MAINTAINER Chris Cannam <cannam@all-day-breakfast.com> |
||
| 4 | |||
| 5 | COPY . /var/www/code |
||
| 6 | |||
| 7 | WORKDIR /var/www/code |
||
| 8 | |||
| 9 | INSERT_PROVISIONING_HERE |
||
| 10 | |||
| 11 | # Start Postgres and foregrounded Apache |
||
| 12 | |||
| 13 | RUN echo "#!/bin/bash" > container-run.sh |
||
| 14 | RUN echo "/etc/init.d/postgresql start" >> container-run.sh |
||
| 15 | RUN echo "apache2ctl -D FOREGROUND" >> container-run.sh |
||
| 16 | RUN chmod +x container-run.sh |
||
| 17 | |||
| 18 | EXPOSE 80 |
||
| 19 | CMD ./container-run.sh |