-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile
30 lines (22 loc) · 1.16 KB
/
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
# ------------------------------------------------------------------------------
# Docker provisioning script for the docker-laravel web server stack
#
# e.g. docker build -t mtmacdonald/docker-laravel:version .
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Start with a base image
# ------------------------------------------------------------------------------
FROM mtmacdonald/docker-base:1.1.2
MAINTAINER Mark Macdonald <[email protected]>
# Use Supervisor to run and manage all other services
CMD ["supervisord", "-c", "/etc/supervisord.conf"]
# ------------------------------------------------------------------------------
# Provision the server
# ------------------------------------------------------------------------------
RUN mkdir /provision
ADD provision /provision
RUN /provision/provision.sh
# ------------------------------------------------------------------------------
# Clean up
# ------------------------------------------------------------------------------
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*