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 @ 1602:b22e234c3c7b
History | View | Annotate | Download (442 Bytes)
| 1 |
|
|---|---|
| 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 |
| 20 |
|