Spaces:
Runtime error
Runtime error
Commit
·
3fb1131
1
Parent(s):
13de926
Update Dockerfile
Browse files- Dockerfile +15 -8
Dockerfile
CHANGED
@@ -1,11 +1,18 @@
|
|
1 |
-
|
2 |
-
FROM nikolaik/python-nodejs:python3.9-nodejs20-slim
|
3 |
|
4 |
WORKDIR /home/user/app
|
5 |
|
6 |
-
RUN
|
7 |
-
|
8 |
-
RUN
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
|
|
2 |
|
3 |
WORKDIR /home/user/app
|
4 |
|
5 |
+
RUN pip install --upgrade pip
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
8 |
+
|
9 |
+
COPY . .
|
10 |
+
|
11 |
+
CMD ["python", "app.py"]
|
12 |
+
|
13 |
+
#RUN --mount=target=/root/packages.txt,source=packages.txt apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
|
14 |
+
#RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* && git lfs install
|
15 |
+
#RUN useradd -m -u 1000 user
|
16 |
+
#RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.12.1" "protobuf<4" "click<8.1" "pydantic~=1.0" "uvicorn>=0.14.0"
|
17 |
+
#RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r pre-requirements.txt
|
18 |
+
#RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir -r requirements.txt
|