Skip to content

Commit

Permalink
fix: include git + submodule checkout during Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
bodom0015 committed Jan 23, 2025
1 parent 19df881 commit d239fce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
docker-compose.yml
Dockerfile

# Ignore submodule - this will be checked out by git during image build
s2orc-doc2json/*

# Cached files
**/__pycache__/*
.idea/
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ FROM pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
# FIXME: Temporary workaround for NFS file permissions issues
USER root

# Install git
RUN apt-get -qq update && \
apt-get -qq install git --no-install-recommends && \
rm -rf /var/lib/apt/lists/*

# Ensure that submodule is present
RUN git submodule update --init

###################
# pdf2text #
###################
Expand Down

0 comments on commit d239fce

Please sign in to comment.