forked from tektoncd/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (18 loc) · 871 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM klakegg/hugo:ext-alpine as dependencies
WORKDIR /app
RUN apk add git gcc build-base python3-dev py3-pip
COPY . /app
RUN npm install
RUN python3 -m venv .venv
RUN source .venv/bin/activate
RUN pip3 install -r requirements.txt
RUN make sync
FROM klakegg/hugo:ext-alpine as website
COPY . /src
COPY --from=dependencies /app/node_modules /src/node_modules
COPY --from=dependencies /app/content/en/docs/Pipelines /src/content/en/docs/Pipelines
COPY --from=dependencies /app/content/en/docs/Triggers /src/content/en/docs/Triggers
COPY --from=dependencies /app/content/en/docs/CLI /src/content/en/docs/CLI
COPY --from=dependencies /app/content/en/vault /src/content/en/vault
COPY --from=dependencies /app/sync/.cache /src/sync/.cache
CMD ["serve", "--baseURL http://localhost:8888/", "--buildDrafts", "--buildFuture", "--disableFastRender", "--ignoreCache", "--watch"]