Spaces:
Runtime error
Runtime error
Yash Sachdeva
commited on
Commit
·
14cc7d6
1
Parent(s):
f55f53d
added docker file
Browse files- Dockerfile +9 -0
Dockerfile
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
WORKDIR /app
|
3 |
+
COPY requirements.txt ./requirements.txt
|
4 |
+
RUN apt-get update \ && apt-get -y install libpq-dev gcc \ && pip install psycopg2
|
5 |
+
RUN pip install uvicorn
|
6 |
+
RUN pip install -r requirements.txt
|
7 |
+
COPY . /app
|
8 |
+
ENTRYPOINT [“uvicorn”, “main:app”]
|
9 |
+
CMD [“ — host”, “0.0.0.0”, “ — port”, “7860”]
|