-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (19 loc) · 720 Bytes
/
Dockerfile
File metadata and controls
33 lines (19 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM golang AS claat
RUN go install github.com/googlecodelabs/tools/claat@latest
COPY ./codelabs /codelabs-html
WORKDIR /codelabs-html
RUN for filename in *.md; do echo "Importing $filename: "; claat export "$filename"; done
FROM node:14 as node
RUN mkdir /www
WORKDIR /www
RUN git clone https://github.com/googlecodelabs/tools
WORKDIR /www/tools/site
COPY --from=claat /codelabs-html /www/tools/site/codelabs-html
RUN npm install -g gulp
RUN npm install
RUN [ "gulp", "dist", "--codelabs-dir=codelabs-html" ]
FROM nginx
COPY --from=node /www/tools/site/dist /usr/share/nginx/html
COPY --from=claat /codelabs-html /usr/share/nginx/html/codelabs
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 6464