Fix Dockerfile (#772)

This commit is contained in:
Tim Condon 2023-02-19 19:36:53 +00:00 committed by GitHub
parent 598a10751e
commit ea0305cbca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 3 deletions

View File

@ -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"]