mirror of https://github.com/vapor/docs.git
Fix Dockerfile (#772)
This commit is contained in:
parent
598a10751e
commit
ea0305cbca
13
Dockerfile
13
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 .
|
COPY requirements.txt .
|
||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
WORKDIR /docs
|
WORKDIR /docs
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN mkdocs build
|
||||||
|
RUN swift fixSearchIndex.swift
|
||||||
|
RUN cp googlefc012e5d94cfa05f.html site/googlefc012e5d94cfa05f.html;
|
||||||
|
RUN swift setUpRedirects.swift
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
CMD [ "mkdocs","serve","-a","0.0.0.0:8000"]
|
CMD [ "mkdocs","serve","-a","0.0.0.0:8000"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue