Dan Anglin
5fbdaa5a02
This is the first of a few commits for creating the GitLab CI pipeline for building and publishing my CV. This commit adds a pipeline for building and publishing the cv-builder docker image to the GitLab container registry. Additions: - The cv-builder docker image: This commit adds a Dockerfile for building the cv-builder docker image. The image is based on the golang (buster) image and installs ConTeXt (standalone version) and the Carlito font. - The gitlab-ci.yml file: This commit adds the gitlab-ci.yml file for running the pipeline for building and publishing the docker image to the GitLab Container Registry. Changes: - The Makefile now includes targets for building and publishing docker images.
28 lines
732 B
Docker
28 lines
732 B
Docker
FROM golang:1.13.5-buster
|
|
|
|
# Upgrade packages and install dependencies
|
|
RUN \
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
fonts-crosextra-carlito \
|
|
rsync \
|
|
&& \
|
|
apt-get clean autoclean && \
|
|
apt-get autoremove -y && \
|
|
rm -rf /var/lib/apt/lists/* /tmp/*
|
|
|
|
# Install ConTeXt standalone
|
|
RUN \
|
|
mkdir /opt/context && \
|
|
cd /opt/context && \
|
|
curl -LO http://minimals.contextgarden.net/setup/first-setup.sh && \
|
|
sh ./first-setup.sh \
|
|
--context=current \
|
|
--engine=luatex \
|
|
&& \
|
|
rm -rf /opt/context/tex/texmf-context/doc
|
|
|
|
ENV PATH=${PATH}:/opt/context/tex/texmf-linux-64/bin \
|
|
OSFONTDIR=/usr/share/fonts
|
|
|
|
RUN mtxrun --script fonts --reload
|