Skip to content

Commit

Permalink
Change base img for quicker start
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo-Hafsaoui committed Nov 16, 2024
1 parent 6a7e989 commit 4de166a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
14 changes: 1 addition & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
FROM golang:1.23
FROM ghcr.io/theo-hafsaoui/go-latex-img:c800f95

WORKDIR /app

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"]
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/*

Expand Down

0 comments on commit 4de166a

Please sign in to comment.