diff --git a/Dockerfile b/Dockerfile index bb62c8c..fd6788c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23 +FROM ghcr.io/theo-hafsaoui/go-latex-img:c800f95 WORKDIR /app @@ -6,18 +6,6 @@ COPY go.mod go.sum ./ RUN go mod download && go mod verify COPY . . - -ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get update && \ - apt-get install -y \ - texlive \ - texlive-latex-extra \ - texlive-fonts-extra \ - texlive-xetex \ - texlive-font-utils \ - fonts-font-awesome && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - RUN make build CMD ["./anemon", "generate"] diff --git a/Makefile b/Makefile index c7728fa..ad5baed 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,9 @@ run: echo "Not yet complete" +run-docker: + sudo docker run -v $(pwd)/assets/latex/output:/app/assets/latex/output anemon:latest + clean: rm ./assets/latex/output/*