-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (31 loc) · 1.11 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
# Copyright (C) 2018 Sebastian Pipping <[email protected]>
# Licensed under the MIT license
FROM debian:bookworm-slim
RUN apt-get update && apt-get install --no-install-recommends --yes -V \
jekyll \
lighttpd
RUN jekyll -v
# Render website
WORKDIR /root/site
COPY _includes/ _includes/
COPY _layouts/ _layouts/
COPY _posts/ _posts/
COPY css/ css/
COPY datenschutz/ datenschutz/
COPY dokumentation/ dokumentation/
COPY downloads/ downloads/
COPY img/ img/
COPY kontakt/ kontakt/
COPY support/ support/
COPY _config.yml index.html ./
RUN jekyll build --destination /var/www/html --trace
# Activate access log
# https://github.com/moby/moby/issues/6880#issuecomment-344114520
RUN ln -s ../conf-available/10-accesslog.conf /etc/lighttpd/conf-enabled/
RUN mkfifo -m 600 /var/log/lighttpd/access.log
RUN chown www-data:www-data /var/log/lighttpd/access.log
EXPOSE 80
CMD ["sh", "-c", "cat <> /var/log/lighttpd/access.log & lighttpd -D -f /etc/lighttpd/lighttpd.conf"]
# Apply system upgrades last
# .. to not be turned into a no-op by Docker cache most of the time
RUN apt-get update && apt-get --yes dist-upgrade