Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11
|
2 |
+
WORKDIR /code
|
3 |
+
|
4 |
+
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
5 |
+
RUN apt-get update && apt-get install -y poppler-utils
|
6 |
+
RUN mkdir -p /code
|
7 |
+
|
8 |
+
USER root
|
9 |
+
RUN chmod -R 777 /code
|
10 |
+
|
11 |
+
COPY ./requirements.txt /code/requirements.txt
|
12 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
13 |
+
COPY . . CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
|