-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (19 loc) · 942 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
FROM python:3.13-bullseye AS base
RUN pip install pipenv
COPY Pipfile Pipfile.lock /
# Hack to speedup pipenv buggy behaviour of being slow af in docker
RUN pipenv requirements > requirements.txt
RUN pip install -r requirements.txt
RUN pipenv sync -v --site-packages
COPY . .
RUN find docs/ -type f -print0 | xargs -0 sed -i 's/★/:material-star:/g'
RUN find docs/ -type f -print0 | xargs -0 sed -i 's/⯪/:material-star-half-full:/g'
RUN find docs/ -type f -print0 | xargs -0 sed -i 's/☆/:material-star-outline:/g'
RUN find docs/ -type f -print0 | xargs -0 sed -i 's/```kts/```js/g'
RUN find docs/ -type f -print0 | xargs -0 sed -i 's/```kt/```js/g'
RUN grep "distributionUrl" gradle/wrapper/gradle-wrapper.properties | grep -oP 'gradle-\K.*(?=-bin.zip)' > templates/gradle.md
RUN pipenv run python tools/build.py
RUN pipenv run mkdocs build -f mkdocs.yml
FROM nginx:alpine
COPY --from=base /site /usr/share/nginx/html
EXPOSE 80