Skip to content

Commit

Permalink
clean dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Jan 6, 2024
1 parent 803bf86 commit 19c04cf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ FROM deepset/haystack:base-cpu-v1.23.0
COPY requirements.txt .
RUN pip install -r requirements.txt

# try to fix permission issues with Tika
RUN mkdir /tmp/tika
# fix permission issues with Tika
RUN chmod 777 /tmp/tika*

# from https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
Expand All @@ -17,11 +16,10 @@ ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH




# copy only the application files in /app
# copy only the application files in $HOME/app
# Streamlit does not allow running an app from the root directory
COPY --chown=user Rock_fact_checker.py $HOME/app/
COPY --chown=user README.md $HOME/app/
COPY --chown=user pages $HOME/app/pages
COPY --chown=user app_utils $HOME/app/app_utils
COPY --chown=user data $HOME/app/data
Expand Down

0 comments on commit 19c04cf

Please sign in to comment.