Spaces:
Sleeping
Sleeping
New dockerfile
Browse filesSigned-off-by: Unai Garay <[email protected]>
- Dockerfile +6 -4
Dockerfile
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
FROM python:3.9
|
2 |
-
|
3 |
-
WORKDIR /app
|
|
|
|
|
4 |
RUN apt-get update && xargs -r -a packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
5 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
6 |
RUN pip3 install --no-cache-dir streamlit==1.10.0
|
7 |
-
|
8 |
-
|
|
|
1 |
FROM python:3.9
|
2 |
+
RUN useradd -m -u 1000 user
|
3 |
+
WORKDIR /home/user/app
|
4 |
+
RUN apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
|
5 |
+
RUN pip install --no-cache-dir pip==22.0.2 && pip install --no-cache-dir datasets huggingface-hub "protobuf<4" "click<8.1"
|
6 |
RUN apt-get update && xargs -r -a packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
7 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
8 |
RUN pip3 install --no-cache-dir streamlit==1.10.0
|
9 |
+
COPY --chown=user --from=lfs /app /home/user/app
|
10 |
+
COPY --chown=user ./ /home/user/app
|