CV/docker/Dockerfile
Dan Anglin 95cf8dbcd6
feat: update CV and project
Changes:

- Add Adarga employment section
- Refined Experian employment section
- Removed GitLab CI files
- Updated Dockerfile
- Updated Magefiles
2023-02-14 07:30:27 +00:00

47 lines
1.1 KiB
Docker

FROM golang:1.19-buster AS builder
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
RUN \
apt-get update \
&& apt-get install -y \
fonts-crosextra-carlito \
rsync \
curl= \
aspell \
aspell-en \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* \
&& mkdir /opt/context
WORKDIR /opt/context
# Install ConTeXt standalone
RUN \
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