-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (33 loc) · 929 Bytes
/
Dockerfile
File metadata and controls
43 lines (33 loc) · 929 Bytes
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
FROM core.harbor.timolia.de/proxy_cache_docker_hub/library/alpine:3.21.5 AS builder
RUN set -x \
&& apk --no-cache upgrade \
&& apk --no-cache add \
bash \
ca-certificates \
curl \
gcc \
git \
musl-dev \
python3 \
python3-dev \
py3-pip \
py3-virtualenv
RUN virtualenv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"
RUN pip install mkdocs mkdocs-material
COPY ./ /code/
WORKDIR /code
RUN rm docs/team/teamler.json \
&& rm -rf howto-dapp \
&& find . -name '*.md.old' -delete \
&& mkdocs build
FROM core.harbor.timolia.de/proxy_cache_docker_hub/library/alpine:3.21.5
RUN apk --no-cache add nginx \
&& adduser -D -g 'www' www \
&& mkdir /www \
&& chown -R www:www /var/lib/nginx
COPY --from=builder /code/site/ /www/
COPY ./nginx.conf /etc/nginx/nginx.conf
RUN chown -R www:www /www
EXPOSE 80
CMD ["nginx"]