-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Dockerfile
40 lines (29 loc) · 894 Bytes
/
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
38
39
40
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/d2-builder:latest AS d2
FROM ghcr.io/linuxserver/baseimage-alpine:edge
# set version label
ARG BUILD_DATE
ARG VERSION
ARG D2_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="roxedus"
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
git \
python3 && \
mkdir -p /app/mkdocs/docs && \
git config --global --add safe.directory /app/mkdocs && \
python3 -m venv /lsiopy && \
pip install -U --no-cache-dir \
pip \
wheel
COPY --from=d2 /usr/local/bin/d2 /usr/local/bin
COPY docs/requirements.txt /app/mkdocs/docs/requirements.txt
RUN \
pip install -U --no-cache-dir \
-r /app/mkdocs/docs/requirements.txt
COPY . /app/mkdocs/
WORKDIR /app/mkdocs
ENTRYPOINT ["catatonit", "--", "mkdocs", "serve"]
CMD [ "-a", "0.0.0.0:8000" ]