-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 919 Bytes
/
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
FROM ubuntu:trusty
MAINTAINER dezinger@gmail.com
ENV DEBIAN_FRONTEND noninteractive
COPY files/ /
RUN \
# update & install base util
apt-get -y update && apt-get -y upgrade && \
apt-get -o Dpkg::Options::=--force-confdef -y install \
supervisor curl wget locales gettext-base cron mc \
python-software-properties software-properties-common && \
# setup locale
locale-gen en_US.UTF-8 ru_RU.UTF-8 && \
# prepeare folders
mkdir --mode 777 -p /var/log/supervisor && \
chmod -R 777 /var/run /var/log /etc/passwd /etc/group && \
mkdir --mode 777 -p /tmp/sockets && \
# clean
apt-get -y autoremove && apt-get -y clean && apt-get autoclean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
rm /var/log/lastlog /var/log/faillog
ENV \
LC_ALL=ru_RU.UTF-8 \
LANG=ru_RU.UTF-8 \
LANGUAGE=ru_RU.UTF-8
ENTRYPOINT ["/bin/bash", "-e", "/init/entrypoint"]
CMD ["run"]