Spaces:
Sleeping
Sleeping
vkrishnan569
commited on
Commit
•
48a9a74
1
Parent(s):
30e80b0
Delete Dockerfile
Browse files- Dockerfile +0 -31
Dockerfile
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
# FROM python:3.9
|
2 |
-
|
3 |
-
# WORKDIR /code
|
4 |
-
|
5 |
-
# COPY ./requirements.txt /code/requirements.txt
|
6 |
-
|
7 |
-
# RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
-
|
9 |
-
# COPY . .
|
10 |
-
|
11 |
-
# RUN mkdir -p /path_to_cache_directory
|
12 |
-
|
13 |
-
# CMD ["uvicorn","main:model","--host", "0.0.0.0", "--port", "80"]
|
14 |
-
|
15 |
-
FROM python:3.9
|
16 |
-
|
17 |
-
RUN useradd -m -u 1000 user
|
18 |
-
USER user
|
19 |
-
|
20 |
-
WORKDIR /code
|
21 |
-
|
22 |
-
COPY ./requirements.txt /code/requirements.txt
|
23 |
-
|
24 |
-
RUN chown -R user:user /code
|
25 |
-
|
26 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
27 |
-
|
28 |
-
COPY --chown=user:user . /path_to_cache_directory
|
29 |
-
|
30 |
-
|
31 |
-
CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|