1
- FROM behance/docker-base:2.1
1
+ FROM behance/docker-base:2.3
2
2
MAINTAINER Bryan Latten <
[email protected] >
3
3
4
4
ENV CONTAINER_ROLE=web \
@@ -11,18 +11,18 @@ ENV CONTAINER_ROLE=web \
11
11
EXPOSE ${CONTAINER_PORT}
12
12
13
13
# - Update security packages, only
14
+ # - Install pre-reqs
15
+ # - Install latest nginx (development PPA is actually mainline development)
16
+ # - Perform cleanup, ensure unnecessary packages are removed
14
17
RUN /bin/bash -e /security_updates.sh && \
15
- # Install pre-reqs \
16
18
apt-get install --no-install-recommends -yqq \
17
19
software-properties-common \
18
20
&& \
19
- # Install latest nginx (development PPA is actually mainline development) \
20
21
add-apt-repository ppa:nginx/development -y && \
21
22
apt-get update -yqq && \
22
23
apt-get install -yqq --no-install-recommends \
23
24
nginx-light \
24
25
&& \
25
- # Perform cleanup, ensure unnecessary packages are removed \
26
26
apt-get remove --purge -yq \
27
27
manpages \
28
28
manpages-dev \
@@ -39,16 +39,16 @@ COPY ./container/root /
39
39
40
40
# Set nginx to listen on defined port
41
41
# NOTE: order of operations is important, new config had to already installed from repo (above)
42
+ # - Make temp directory for .nginx runtime files
43
+ # - Some operations can be completely removed once this ticket is resolved:
44
+ # - https://trac.nginx.org/nginx/ticket/1243
45
+ # - Remove older WOFF mime-type
46
+ # - Add again with newer mime-type
47
+ # - Also add mime-type for WOFF2
42
48
RUN sed -i "s/listen [0-9]*;/listen ${CONTAINER_PORT};/" $CONF_NGINX_SITE && \
43
- # Make temp directory for .nginx runtime files \
44
49
mkdir /tmp/.nginx && \
45
- # Next three operations can be completely removed once this ticket is resolved:
46
- # https://trac.nginx.org/nginx/ticket/1243
47
- # Remove older WOFF mime-type
48
50
sed -i "/application\/ font-woff/d" /etc/nginx/mime.types && \
49
- # Add again with newer mime-type
50
51
sed -i "s/}/\n font\/ woff woff;&/" /etc/nginx/mime.types && \
51
- # Also add mime-type for WOFF2
52
52
sed -i "s/}/\n font\/ woff2 woff2;\n &/g" /etc/nginx/mime.types
53
53
54
54
RUN goss -g /tests/nginx/base.goss.yaml validate && \
0 commit comments