diff --git a/Dockerfile b/Dockerfile index 07c6697e..5f55a103 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,20 @@ -FROM alpine:3.14 +FROM swift:5.7 -RUN apk update && apk add py3-pip +RUN apt-get update && apt-get install -y python3-pip COPY requirements.txt . -RUN pip install -r requirements.txt +RUN pip3 install -r requirements.txt WORKDIR /docs +COPY . . + +RUN mkdocs build +RUN swift fixSearchIndex.swift +RUN cp googlefc012e5d94cfa05f.html site/googlefc012e5d94cfa05f.html; +RUN swift setUpRedirects.swift + EXPOSE 8000 CMD [ "mkdocs","serve","-a","0.0.0.0:8000"]