Spaces:
Sleeping
Sleeping
kltn20133118
commited on
Update Dockerfile
Browse files- Dockerfile +24 -24
Dockerfile
CHANGED
@@ -1,24 +1,24 @@
|
|
1 |
-
FROM python:3.11
|
2 |
-
|
3 |
-
WORKDIR /code
|
4 |
-
WORKDIR /code/temp
|
5 |
-
WORKDIR /nltk_data
|
6 |
-
|
7 |
-
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
8 |
-
RUN mkdir -p /code
|
9 |
-
RUN mkdir -p /code/temp
|
10 |
-
RUN mkdir -p /nltk_data
|
11 |
-
|
12 |
-
USER root
|
13 |
-
|
14 |
-
RUN chmod -R 777 /nltk_data
|
15 |
-
RUN chmod -R 777 /code
|
16 |
-
RUN chmod -R 777 /code/temp
|
17 |
-
|
18 |
-
COPY ./requirements.txt /code/requirements.txt
|
19 |
-
COPY ./firebase_certificate.json /code/firebase_certificate.json
|
20 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
21 |
-
|
22 |
-
COPY . .
|
23 |
-
|
24 |
-
|
|
|
1 |
+
FROM python:3.11
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
WORKDIR /code/temp
|
5 |
+
WORKDIR /nltk_data
|
6 |
+
|
7 |
+
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
8 |
+
RUN mkdir -p /code
|
9 |
+
RUN mkdir -p /code/temp
|
10 |
+
RUN mkdir -p /nltk_data
|
11 |
+
|
12 |
+
USER root
|
13 |
+
|
14 |
+
RUN chmod -R 777 /nltk_data
|
15 |
+
RUN chmod -R 777 /code
|
16 |
+
RUN chmod -R 777 /code/temp
|
17 |
+
|
18 |
+
COPY ./requirements.txt /code/requirements.txt
|
19 |
+
COPY ./firebase_certificate.json /code/firebase_certificate.json
|
20 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
21 |
+
|
22 |
+
COPY . .
|
23 |
+
|
24 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
|