-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
40 lines (32 loc) · 1.51 KB
/
Dockerfile
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
FROM ubuntu:jammy-20240227
ARG BUILD_DATE
ARG VCS_REF
# https://github.com/ryanoasis/nerd-fonts/releases
ENV NERDFONTS_VERSION="v3.2.1" \
NERDFONTS_SHA256="ef4e72c2cee2a033886e6c5755981e60c416ff964644281a23017c3d14630d13"
ENV IMAGE_VERSION="${NERDFONTS_VERSION}"
ENV BUILD_DIR="/build" \
WORKDIR="/nerd-fonts"
ENV FONTPATCHER_DIR="${WORKDIR}/repo"
RUN mkdir -p "${FONTPATCHER_DIR}"
# Install nerd fonts
COPY assets/build/ ${BUILD_DIR}
WORKDIR ${BUILD_DIR}
RUN bash ${BUILD_DIR}/install.sh && rm -rf ${BUILD_DIR}
LABEL org.opencontainers.image.title="Dockerized Nerd Fonts Patcher"
LABEL org.opencontainers.image.description="Nerd Fonts ${NERDFONTS_VERSION} containerized"
LABEL org.opencontainers.image.documentation="https://github.com/cdalvaro/docker-nerd-fonts-patcher/blob/${IMAGE_VERSION}/README.md"
LABEL org.opencontainers.image.url="https://github.com/cdalvaro/docker-nerd-fonts-patcher"
LABEL org.opencontainers.image.source="https://github.com/cdalvaro/docker-nerd-fonts-patcher"
LABEL org.opencontainers.image.authors="Carlos Álvaro <[email protected]>"
LABEL org.opencontainers.image.vendor="cdalvaro"
LABEL org.opencontainers.image.created="${BUILD_DATE}"
LABEL org.opencontainers.image.version="${IMAGE_VERSION}"
LABEL org.opencontainers.image.revision="${VCS_REF}"
LABEL org.opencontainers.image.base.name="ubuntu:jammy-20240227"
LABEL org.opencontainers.image.licenses="MIT"
# Entrypoint
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod +x /sbin/entrypoint.sh
WORKDIR ${WORKDIR}
ENTRYPOINT ["/sbin/entrypoint.sh"]