This commit is contained in:
parent
c1dc6dc9f7
commit
ad62cf69cd
|
@ -29,7 +29,7 @@ services:
|
|||
ports:
|
||||
- '8000:8000'
|
||||
- '8765:8765'
|
||||
command: gunicorn -w 3 -t 60 -b 0.0.0.0:8000 app:app
|
||||
command: tail -f /dev/null
|
||||
|
||||
code-server:
|
||||
build: ./docker/code-server
|
||||
|
|
|
@ -25,6 +25,7 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
|||
|
||||
# 安装包
|
||||
COPY --from=build-dmpython --chown=flask:flask /home/dmdba/build_artifacts/dmPython-2.5.5-cp310-cp310-linux_x86_64.whl .
|
||||
|
||||
RUN python3 -m venv "$VIRTUAL_ENV" && \
|
||||
export FLASK_APP=app.py && \
|
||||
pip3 install dmPython-2.5.5-cp310-cp310-linux_x86_64.whl && rm dmPython-2.5.5-cp310-cp310-linux_x86_64.whl && \
|
||||
|
@ -37,4 +38,4 @@ COPY --from=build-frontend /usr/src/app/build/ /home/flask/public/
|
|||
EXPOSE 8000 22 8765
|
||||
USER root
|
||||
|
||||
CMD ["gunicorn", "-w", "3", "-t", "60", "-b", "0.0.0.0:8000", "app:app"]
|
||||
# CMD ["gunicorn", "-w", "3", "-t", "60", "-b", "0.0.0.0:8000", "app:app"]
|
Loading…
Reference in New Issue