Skip to content

Commit

Permalink
Update Dockerfile to install pdftotext utility for PDF processing
Browse files Browse the repository at this point in the history
  • Loading branch information
quang-ng committed Dec 19, 2024
1 parent dca4d6d commit 4af8cd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions services/oddpub/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ SHELL ["/bin/bash", "--login", "-c"]
# Set working directory
WORKDIR /app

# Install pdftotext
RUN apt-get update && apt-get install -y poppler-utils

COPY environment.yaml /app

# Create the environment
Expand All @@ -22,9 +25,6 @@ COPY _entrypoint.sh /usr/local/bin/_entrypoint.sh
# Make _entrypoint.sh executable
RUN chmod +x /usr/local/bin/_entrypoint.sh

# Install pdftotext
RUN apt-get update && apt-get install -y poppler-utils

ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"]

CMD ["fastapi", "dev", "--host", "0.0.0.0", "--port", "8071"]

0 comments on commit 4af8cd1

Please sign in to comment.