2022-02-01 21:50:43 +00:00
|
|
|
FROM golang:1.17.6-buster AS builder
|
2019-12-21 19:38:34 +00:00
|
|
|
|
2020-09-13 22:50:17 +01:00
|
|
|
RUN git clone https://github.com/magefile/mage "${GOPATH}/src/mage"
|
|
|
|
|
|
|
|
WORKDIR ${GOPATH}/src/mage
|
|
|
|
|
|
|
|
RUN go run bootstrap.go
|
|
|
|
|
|
|
|
COPY go.mod ${GOPATH}/cv-builder/
|
|
|
|
COPY go.sum ${GOPATH}/cv-builder/
|
|
|
|
COPY magefile.go ${GOPATH}/cv-builder/
|
|
|
|
COPY helpers ${GOPATH}/cv-builder/helpers
|
|
|
|
|
|
|
|
WORKDIR ${GOPATH}/cv-builder
|
|
|
|
|
|
|
|
RUN mage -compile /usr/local/bin/cv-make
|
|
|
|
|
|
|
|
FROM debian:buster
|
|
|
|
|
|
|
|
COPY --from=builder /usr/local/bin/cv-make /usr/local/bin
|
|
|
|
|
|
|
|
# Install dependencies
|
2019-12-21 19:38:34 +00:00
|
|
|
RUN \
|
|
|
|
apt-get update && \
|
2022-02-01 21:50:43 +00:00
|
|
|
apt-get install -y \
|
2020-08-08 04:36:13 +01:00
|
|
|
fonts-crosextra-carlito=20130920-1 \
|
|
|
|
rsync=3.1.3-6 \
|
2022-02-01 21:50:43 +00:00
|
|
|
curl=7.64.0-4+deb10u2 \
|
|
|
|
aspell=0.60.7~20110707-6+deb10u1 \
|
2020-09-13 22:50:17 +01:00
|
|
|
aspell-en=2018.04.16-0-1 \
|
2019-12-21 19:38:34 +00:00
|
|
|
&& \
|
|
|
|
apt-get clean autoclean && \
|
|
|
|
apt-get autoremove -y && \
|
2020-08-08 04:36:13 +01:00
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* && \
|
|
|
|
mkdir /opt/context
|
|
|
|
|
|
|
|
WORKDIR /opt/context
|
2019-12-21 19:38:34 +00:00
|
|
|
|
|
|
|
# Install ConTeXt standalone
|
|
|
|
RUN \
|
2022-02-01 21:50:43 +00:00
|
|
|
curl -LO http://minimals.contextgarden.net/setup/first-setup.sh && \
|
|
|
|
sh first-setup.sh --context=current --engine=luatex && \
|
2019-12-21 19:38:34 +00:00
|
|
|
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
|