ag added service API using docker and fastAPI
This commit is contained in:
18
service/Dockerfile
Normal file
18
service/Dockerfile
Normal file
@@ -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