-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (43 loc) · 2.45 KB
/
Dockerfile
File metadata and controls
58 lines (43 loc) · 2.45 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
##############################################################
# Setup node image
##############################################################
ARG ALPINE_VERSION=3.21.3
ARG NODE_VERSION=23.9.0
FROM node:${NODE_VERSION}-alpine AS node
FROM alpine:${ALPINE_VERSION}
COPY --from=node /usr/lib /usr/lib
COPY --from=node /usr/local/lib /usr/local/lib
COPY --from=node /usr/local/include /usr/local/include
COPY --from=node /usr/local/bin /usr/local/bin
##############################################################
# Install quartz
##############################################################
ARG QUARTZ_VERSION=feat/1915-front-matter-url-override
WORKDIR /quartz
RUN addgroup -S quartz && \
adduser -S quartz -G quartz
RUN apk add --no-cache --update coreutils git && \
git clone https://github.com/anthops/quartz.git . && \
git -c advice.detachedHead=false checkout "${QUARTZ_VERSION}" && \
apk del git
COPY --chown=quartz:quartz entrypoint.sh .
RUN chmod +x ./entrypoint.sh
RUN npm ci
RUN chown -R quartz:quartz /quartz
COPY --chown=quartz:quartz customisations/ .
# strip emojis from folder names
COPY --chown=quartz:quartz ["content/📝 Projects", "content/Projects"]
COPY --chown=quartz:quartz ["content/🧠 Knowledge/☁️ Cloud", "content/Knowledge/Cloud"]
COPY --chown=quartz:quartz ["content/🧠 Knowledge/⛓️ Blockchain", "content/Knowledge/Blockchain"]
COPY --chown=quartz:quartz ["content/🧠 Knowledge/🌐 Networking", "content/Knowledge/Networking"]
COPY --chown=quartz:quartz ["content/🧠 Knowledge/📜 Software Licensing", "content/Knowledge/Software Licensing"]
COPY --chown=quartz:quartz ["content/🧠 Knowledge/📞 Telephony Systems", "content/Knowledge/Telephony Systems"]
COPY --chown=quartz:quartz ["content/🧠 Knowledge/🖥️ Operating Systems", "content/Knowledge/Operating Systems"]
COPY --chown=quartz:quartz ["content/🧠 Knowledge/🤖 Artificial Intelligence", "content/Knowledge/Artificial Intelligence"]
COPY --chown=quartz:quartz ["content/🧠 Knowledge/🧑🏼💻 Programming", "content/Knowledge/Programming"]
COPY --chown=quartz:quartz ["content/🧠 Knowledge/🚀 DevSecOps & Platforms", "content/Knowledge/DevSecOps & Platforms"]
COPY --chown=quartz:quartz ["content/🧠 Knowledge/🛡️ Cybersecurity", "content/Knowledge/Cybersecurity"]
COPY --chown=quartz:quartz ["content/_images", "content/_images"]
COPY --chown=quartz:quartz ["content/index.md", "content/index.md"]
USER quartz
CMD ["./entrypoint.sh"]