-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·50 lines (38 loc) · 1.14 KB
/
Dockerfile
File metadata and controls
executable file
·50 lines (38 loc) · 1.14 KB
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
41
42
43
44
45
46
47
48
49
50
# Dockerfile for Munki-Docker
# Hopefully a much smaller image than others out there
# This branch includes PHP7 fpm - in case you have some PHP scripts
# you need to run, such as Munki Enroll
# Date: 28-06-2018
# Notes: Update to latest patches
# Start from Debian because its smaller than Ubuntu but gets the job done.
FROM debian:stretch
MAINTAINER Calum Hunter (calum.h@gmail.com)
# Add the packages we need from apt then remove the cached list saving some disk space
RUN apt-get update && \
apt-get upgrade && \
apt-get install -y \
nginx \
vim \
php7.0-xml \
php7.0-fpm && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Create dirs for Munki
RUN mkdir -p /webroot && \
mkdir -p /etc/nginx/sites-enabled/ && \
rm /etc/nginx/sites-enabled/default
# Add Munki config files
ADD nginx.conf /etc/nginx/nginx.conf
ADD munki-repo.conf /etc/nginx/sites-enabled/
# Add start up script
ADD start.sh /start.sh
RUN chmod +x /start.sh
# Set up logs
RUN ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
# Expose volumes
VOLUME ["/webroot"]
# Expose ports
EXPOSE 80 443
# Lets go!
CMD ["/start.sh"]