Spaces:
Running
Running
clean dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -3,8 +3,7 @@ FROM deepset/haystack:base-cpu-v1.23.0
|
|
3 |
COPY requirements.txt .
|
4 |
RUN pip install -r requirements.txt
|
5 |
|
6 |
-
#
|
7 |
-
RUN mkdir /tmp/tika
|
8 |
RUN chmod 777 /tmp/tika*
|
9 |
|
10 |
# from https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
|
@@ -17,11 +16,10 @@ ENV HOME=/home/user \
|
|
17 |
PATH=/home/user/.local/bin:$PATH
|
18 |
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
# copy only the application files in /app
|
23 |
# Streamlit does not allow running an app from the root directory
|
24 |
COPY --chown=user Rock_fact_checker.py $HOME/app/
|
|
|
25 |
COPY --chown=user pages $HOME/app/pages
|
26 |
COPY --chown=user app_utils $HOME/app/app_utils
|
27 |
COPY --chown=user data $HOME/app/data
|
|
|
3 |
COPY requirements.txt .
|
4 |
RUN pip install -r requirements.txt
|
5 |
|
6 |
+
# fix permission issues with Tika
|
|
|
7 |
RUN chmod 777 /tmp/tika*
|
8 |
|
9 |
# from https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
|
|
|
16 |
PATH=/home/user/.local/bin:$PATH
|
17 |
|
18 |
|
19 |
+
# copy only the application files in $HOME/app
|
|
|
|
|
20 |
# Streamlit does not allow running an app from the root directory
|
21 |
COPY --chown=user Rock_fact_checker.py $HOME/app/
|
22 |
+
COPY --chown=user README.md $HOME/app/
|
23 |
COPY --chown=user pages $HOME/app/pages
|
24 |
COPY --chown=user app_utils $HOME/app/app_utils
|
25 |
COPY --chown=user data $HOME/app/data
|