ag added service API using docker and fastAPI
This commit is contained in:
1 parent
759f4c50d0
commit
08c5f672be
16 files changed
+3450
-264
No files matched your search
@@ -0,0 +1,18 @@
|
||||
|
||||
#
|
||||
FROM python:3.9
|
||||
|
||||
#
|
||||
WORKDIR /code
|
||||
|
||||
#
|
||||
COPY ./requirements.txt /code/requirements.txt
|
||||
|
||||
#
|
||||
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
||||
|
||||
#
|
||||
COPY ./app /code/app
|
||||
|
||||
#
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]
|
||||
Reference in new issue
Block a user