-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (26 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
31 lines (26 loc) · 1.02 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
# ---- Nginx ----
FROM nginx:1.21
LABEL maintainer="Lukas Korl <hello@lukaskorl.com>"
# Install dependencies
RUN apt-get update \
&& apt-get install -y wget apache2-utils figlet lolcat boxes wget \
&& apt-get clean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s /usr/games/lolcat /usr/bin/lolcat
# Install esh for nginx config templating
RUN cd /usr/local/bin \
&& wget https://raw.githubusercontent.com/jirutka/esh/v0.3.2/esh \
&& chmod ugo+x /usr/local/bin/esh \
&& echo '9084e3e8e70e4ea81c40cd1cf85559196c0fa2cc esh' | sha1sum -c \
|| exit 1
# Remove preinstalled site configurations
RUN rm /etc/nginx/conf.d/* && \
rm /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh && \
mkdir -p /etc/nginx/esh
RUN curl https://ssl-config.mozilla.org/ffdhe2048.txt > /etc/nginx/dhparam.pem
# Add custom configuration and startup scripts
COPY entrypoint/* /docker-entrypoint.d
COPY conf.d/* /etc/nginx/esh/
COPY nginx.conf /etc/nginx/nginx.conf
COPY html/* /usr/share/nginx/html/