convert to fast api
This commit is contained in:
@ -9,7 +9,8 @@ RUN cd Cbc-2.9.8 && \
|
||||
./configure && \
|
||||
make && \
|
||||
make install
|
||||
RUN python -m pip install -U Flask
|
||||
RUN python -m pip install fastapi[all]
|
||||
|
||||
|
||||
# Bundle app source
|
||||
COPY . /app
|
||||
@ -17,4 +18,4 @@ COPY . /app
|
||||
WORKDIR /app/app
|
||||
|
||||
# CMD tail -f /dev/null
|
||||
CMD export FLASK_APP=main && flask run -p 80 --host=0.0.0.0
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
|
||||
|
Reference in New Issue
Block a user