feat(build): run convert script when container starts
This commit is contained in:
parent
45a3ddc2a9
commit
a8769a5919
|
@ -28,4 +28,4 @@ ENV ONNX_WEB_BUNDLE_PATH="/onnx-web/gui"
|
|||
|
||||
COPY gui/ /onnx-web/gui/
|
||||
|
||||
CMD [ "flask", "--app=onnx_web.serve", "run", "--host=0.0.0.0" ]
|
||||
CMD [ "sh", "-c", "python -m onnx_web.convert --diffusion --upscaling --correction --extras && flask --app=onnx_web.serve run --host=0.0.0.0" ]
|
||||
|
|
|
@ -26,4 +26,4 @@ ENV ONNX_WEB_BUNDLE_PATH="/onnx-web/gui"
|
|||
|
||||
COPY gui/ /onnx-web/gui/
|
||||
|
||||
CMD [ "flask", "--app=onnx_web.serve", "run", "--host=0.0.0.0" ]
|
||||
CMD [ "sh", "-c", "python -m onnx_web.convert --diffusion --upscaling --correction --extras && flask --app=onnx_web.serve run --host=0.0.0.0" ]
|
||||
|
|
|
@ -26,4 +26,4 @@ ENV ONNX_WEB_BUNDLE_PATH="/onnx-web/gui"
|
|||
|
||||
COPY gui/ /onnx-web/gui/
|
||||
|
||||
CMD [ "flask", "--app=onnx_web.serve", "run", "--host=0.0.0.0" ]
|
||||
CMD [ "sh", "-c", "python -m onnx_web.convert --diffusion --upscaling --correction --extras && flask --app=onnx_web.serve run --host=0.0.0.0" ]
|
||||
|
|
|
@ -20,4 +20,4 @@ ENV ONNX_WEB_BUNDLE_PATH="/onnx-web/gui"
|
|||
|
||||
COPY gui/ /onnx-web/gui/
|
||||
|
||||
CMD [ "flask", "--app=onnx_web.serve", "run", "--host=0.0.0.0" ]
|
||||
CMD [ "sh", "-c", "python -m onnx_web.convert --diffusion --upscaling --correction --extras && flask --app=onnx_web.serve run --host=0.0.0.0" ]
|
||||
|
|
Loading…
Reference in New Issue