From ea0305cbcae6b093ff1e4461d3c61b5152b8c089 Mon Sep 17 00:00:00 2001 From: Tim Condon <0xTim@users.noreply.github.com> Date: Sun, 19 Feb 2023 19:36:53 +0000 Subject: [PATCH] Fix Dockerfile (#772) --- Dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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"]