Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonshambo committed May 16, 2024
1 parent cbef107 commit a8d6a23
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ FROM texlive/texlive:latest
RUN apt-get update && \
apt-get install -y imagemagick texlive-fonts-extra

# Set the working directory
WORKDIR /data/latex # Create a dedicated directory for LaTeX files
# Set the working directory (adjust if needed)
WORKDIR /data/latex

# Copy your LaTeX files into the container
COPY . /data/latex
# Copy main.tex directly
COPY main.tex /data/latex

# Build the LaTeX document
RUN pdflatex main.tex

# Convert PDF to PNG (executed outside the container for more control)
# (Optional: Remove CMD if you execute this command in your workflow)
# (Optional: Remove CMD if you execute this in your workflow)
# CMD ["convert", "-density", "300", "main.pdf", "-quality", "90", "main.png"]

0 comments on commit a8d6a23

Please sign in to comment.