-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
43 lines (32 loc) · 1.53 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
41
42
43
# ------------------------------------------------------------------------------
# Docker provisioning script for the docker-base image
#
# e.g. docker build -t mtmacdonald/docker-base:version .
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Start with the official Ubuntu 16.04 base image
# ------------------------------------------------------------------------------
FROM ubuntu:16.04
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 ["supervisord", "-c", "/etc/supervisord.conf"]
# ------------------------------------------------------------------------------
# Provision
# ------------------------------------------------------------------------------
RUN mkdir /provision
ADD provision /provision
RUN /provision/provision.sh
# ------------------------------------------------------------------------------
# Set locale (support UTF-8 in the container terminal)
# ------------------------------------------------------------------------------
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# ------------------------------------------------------------------------------
# Clean up
# ------------------------------------------------------------------------------
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*