Spaces:
Sleeping
Sleeping
resolved library issue python-magic-bin
Browse files- Dockerfile +3 -3
- requirements.txt +2 -2
Dockerfile
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
-
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
-
# you will also find guides on how best to write your Dockerfile
|
| 3 |
-
|
| 4 |
FROM python:3.9
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
RUN useradd -m -u 1000 user
|
| 7 |
USER user
|
| 8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
+
# Add system package before switching to non-root user
|
| 4 |
+
RUN apt-get update && apt-get install -y libmagic1
|
| 5 |
+
|
| 6 |
RUN useradd -m -u 1000 user
|
| 7 |
USER user
|
| 8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
requirements.txt
CHANGED
|
@@ -30,8 +30,8 @@ transformers
|
|
| 30 |
huggingface-hub
|
| 31 |
|
| 32 |
# Additional utilities
|
| 33 |
-
python-magic
|
| 34 |
-
python-magic-bin
|
| 35 |
pypdf
|
| 36 |
lxml
|
| 37 |
|
|
|
|
| 30 |
huggingface-hub
|
| 31 |
|
| 32 |
# Additional utilities
|
| 33 |
+
python-magic==0.4.27
|
| 34 |
+
# python-magic-bin
|
| 35 |
pypdf
|
| 36 |
lxml
|
| 37 |
|