Skip to content

Commit ea0305c

Browse files
authored
Fix Dockerfile (vapor#772)
1 parent 598a107 commit ea0305c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Dockerfile

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
FROM alpine:3.14
1+
FROM swift:5.7
22

3-
RUN apk update && apk add py3-pip
3+
RUN apt-get update && apt-get install -y python3-pip
44

55
COPY requirements.txt .
66

7-
RUN pip install -r requirements.txt
7+
RUN pip3 install -r requirements.txt
88

99
WORKDIR /docs
1010

11+
COPY . .
12+
13+
RUN mkdocs build
14+
RUN swift fixSearchIndex.swift
15+
RUN cp googlefc012e5d94cfa05f.html site/googlefc012e5d94cfa05f.html;
16+
RUN swift setUpRedirects.swift
17+
1118
EXPOSE 8000
1219

1320
CMD [ "mkdocs","serve","-a","0.0.0.0:8000"]

0 commit comments

Comments
 (0)