lucas-wa
commited on
Commit
·
bd6b16c
1
Parent(s):
02d730d
Fixing bugs
Browse files- Dockerfile +6 -7
Dockerfile
CHANGED
@@ -1,9 +1,4 @@
|
|
1 |
-
FROM
|
2 |
-
# FROM python:3.10.12
|
3 |
-
|
4 |
-
RUN apt-get update && apt-get upgrade
|
5 |
-
|
6 |
-
RUN apt-get install python3.9
|
7 |
|
8 |
WORKDIR /code
|
9 |
|
@@ -21,5 +16,9 @@ COPY ./check_token.py /code/check_token.py
|
|
21 |
COPY ./inference.py /code/inference.py
|
22 |
|
23 |
COPY entrypoint.sh /entrypoint.sh
|
|
|
24 |
RUN chmod +x /entrypoint.sh
|
25 |
-
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10.12
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
|
|
16 |
COPY ./inference.py /code/inference.py
|
17 |
|
18 |
COPY entrypoint.sh /entrypoint.sh
|
19 |
+
|
20 |
RUN chmod +x /entrypoint.sh
|
21 |
+
|
22 |
+
ENTRYPOINT ["/entrypoint.sh"]
|
23 |
+
|
24 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]
|