refractor from flask template
This commit is contained in:
13
Dockerfile
13
Dockerfile
@ -1,7 +1,12 @@
|
||||
FROM python:3.10
|
||||
ARG PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
ENV PYPI_MIRROR=${PYPI_MIRROR}
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
RUN ./scripts/setup-env.sh
|
||||
CMD /app/venv/bin/waitress-serve app:app
|
||||
WORKDIR /code
|
||||
|
||||
COPY requirements.txt /code/requirements.txt
|
||||
COPY scripts /code/scripts
|
||||
RUN ls && ./scripts/setup-env.sh
|
||||
|
||||
ADD app app
|
||||
EXPOSE 8000
|
||||
CMD ["/code/venv/bin/uvicorn", "app.main:app", "--host", "0.0.0.0"]
|
Reference in New Issue
Block a user