Spaces:
Running
Running
File size: 863 Bytes
073bc44 19c04cf 803bf86 29d1f4b 9ca8b26 803bf86 19c04cf 073bc44 9ca8b26 19c04cf 9ca8b26 073bc44 9ca8b26 073bc44 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
FROM deepset/haystack:base-cpu-v1.23.0
COPY requirements.txt .
RUN pip install -r requirements.txt
# fix permission issues with Tika
RUN chmod 777 /tmp/tika*
# from https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# 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
WORKDIR $HOME/app
EXPOSE 8501
ENTRYPOINT ["streamlit", "run", "Rock_fact_checker.py"]
|