-
Notifications
You must be signed in to change notification settings - Fork 0
/
Docker.web
66 lines (56 loc) · 1.93 KB
/
Docker.web
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM debian:stable
LABEL maintainer "Remi suinot <remi@suinot.org>"
ENV DEBIAN_FRONTEND noninteractive
ENV INITRD No
RUN apt-get update \
&& apt-get install --no-install-recommends -y locales netcat;
RUN echo "locales locales/default_environment_locale select fr_FR.UTF-8" | debconf-set-selections \
&& echo "locales locales/locales_to_be_generated multiselect 'fr_FR.UTF-8 UTF-8'" | debconf-set-selections \
&& echo "Europe/Paris" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && locale-gen --purge en_US.UTF-8 \
&& rm -rf /var/lib/apt/lists/*
COPY ./01proxy /etc/apt/apt.conf.d/01proxy
COPY ./detect_proxy.sh /etc/apt
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install --no-install-recommends -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng16-16 \
libpng-dev \
libpng-tools \
mysql-client \
libsqlite3-dev \
libsqlite3-0 \
curl \
ca-certificates \
libcurl3 \
libcurl3-dev \
libmagickwand-dev \
imagemagick \
curl \
unzip \
gettext-base \
libsvn1 \
subversion \
gnupg \
gnupg2 \
vim \
gnupg1
RUN curl http://nginx.org/packages/keys/nginx_signing.key > /tmp/tmp.key \
&& apt-key add /tmp/tmp.key > /dev/null 2>\&1 \
&& echo "deb http://nginx.org/packages/debian/ jessie nginx" >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y \
nginx-extras \
gettext-base \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm /var/log/dpkg.log \
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
VOLUME ["/var/www/"]
EXPOSE 80 443
STOPSIGNAL SIGTERM
COPY ./web-entrypoint.sh /usr/local/sbin/
RUN chown 0.0 /usr/local/sbin/web-entrypoint.sh
ENTRYPOINT ["/usr/local/sbin/web-entrypoint.sh"]