Update Dockerfile

This commit is contained in:
qiaofeng1227 2023-04-04 09:25:13 +08:00 committed by GitHub
parent d572cfb1d8
commit 306e1df746
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ WORKDIR /usr/src/app
COPY api ./api
COPY static ./static
COPY requirements.txt main.py ./
RUN apt update
RUN pip install -r requirements.txt
RUN mkdir /data
@ -17,3 +18,6 @@ CMD ["uvicorn", "main:get_app", "--host", "0.0.0.0", "--port", "5000", "--log-le
# Expose the port in which the application will be deployed
EXPOSE 5000
# install supervisord
RUN apt install -y supervisor