-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (29 loc) · 1.49 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
31
32
33
34
35
36
37
38
39
40
# ------------------------------------------------------------------------------
# Docker provisioning script for the Larazest web server stack
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Start with a Ubuntu 14.04 base image with a LEMP stack, optimized for Docker
# see https://github.com/larazest/base
# ------------------------------------------------------------------------------
FROM larazest/base:1.3.0
MAINTAINER Mark Macdonald <[email protected]>
# Set correct environment variables
ENV HOME /root
ENV DEBIAN_FRONTEND noninteractive
# Use Supervisor to run and manage all other services
CMD ["/usr/local/bin/supervisord", "-c", "/etc/supervisord.conf"]
# ------------------------------------------------------------------------------
# Provision the server
# ------------------------------------------------------------------------------
RUN mkdir /provision
ADD provision /provision
RUN /provision/provision.sh
# ------------------------------------------------------------------------------
# Prepare image for use
# ------------------------------------------------------------------------------
# Expose ports
EXPOSE 80
# ------------------------------------------------------------------------------
# Clean up
# ------------------------------------------------------------------------------
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /provision/*