refactor: split flask app structure
This commit is contained in:
+6
-3
@@ -17,12 +17,15 @@ RUN conda create -n demo python=3.12 -y \
|
||||
&& conda run -n demo python -m pip install --no-cache-dir -r requirements.txt \
|
||||
&& conda clean -afy
|
||||
|
||||
COPY final_flask_app_0331_strict_fixed_F.py .
|
||||
COPY my_survival_forest_model_quxi-10-0331.joblib .
|
||||
COPY app ./app
|
||||
COPY templates ./templates
|
||||
COPY static ./static
|
||||
COPY main.py .
|
||||
COPY example.xlsx .
|
||||
COPY my_survival_forest_model_quxi-10-0331.joblib .
|
||||
|
||||
RUN mkdir -p data static/images uploads
|
||||
|
||||
EXPOSE 5005
|
||||
|
||||
CMD ["conda", "run", "--no-capture-output", "-n", "demo", "python", "final_flask_app_0331_strict_fixed_F.py"]
|
||||
CMD ["conda", "run", "--no-capture-output", "-n", "demo", "python", "main.py"]
|
||||
|
||||
Reference in New Issue
Block a user