Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +17 -16
Dockerfile
CHANGED
@@ -1,17 +1,18 @@
|
|
1 |
-
FROM rendyprojects/python:latest
|
2 |
-
|
3 |
-
WORKDIR /app/
|
4 |
-
|
5 |
-
RUN apt -qq update
|
6 |
-
|
7 |
-
COPY . .
|
8 |
-
|
9 |
-
RUN pip3 install --
|
10 |
-
RUN pip3 install
|
11 |
-
|
12 |
-
|
13 |
-
RUN
|
14 |
-
RUN
|
15 |
-
RUN
|
16 |
-
|
|
|
17 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
+
FROM rendyprojects/python:latest
|
2 |
+
|
3 |
+
WORKDIR /app/
|
4 |
+
|
5 |
+
RUN apt -qq update
|
6 |
+
|
7 |
+
COPY . .
|
8 |
+
|
9 |
+
RUN pip3 install cchardet --no-cache-dir
|
10 |
+
RUN pip3 install --upgrade pip setuptools
|
11 |
+
RUN pip3 install -r requirements.txt
|
12 |
+
|
13 |
+
RUN chown -R 1000:0 .
|
14 |
+
RUN chmod 777 .
|
15 |
+
RUN chown -R 1000:0 /usr
|
16 |
+
RUN chmod 777 /usr
|
17 |
+
|
18 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|