Prechádzať zdrojové kódy

delete unused files

highing666 2 rokov pred
rodič
commit
fbe8d4c87e
2 zmenil súbory, kde vykonal 0 pridanie a 61 odobranie
  1. 0 31
      Dockerfile.old
  2. 0 30
      pyproject.toml

+ 0 - 31
Dockerfile.old

@@ -1,31 +0,0 @@
-# syntax=docker/dockerfile:1
-
-# FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
-FROM tiangolo/uvicorn-gunicorn:python3.9
-
-WORKDIR /app
-
-# Install Poetry
-RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
-    cd /usr/local/bin && \
-    ln -s /opt/poetry/bin/poetry && \
-    poetry config virtualenvs.create false
-
-# Copy poetry.lock* in case it doesn't exist in the repo
-COPY pyproject.toml poetry.lock* /app/
-
-# Allow installing dev dependencies to run tests
-ARG INSTALL_DEV=false
-RUN bash -c "if [ $INSTALL_DEV == 'true' ] ; then poetry install --no-root ; else poetry install --no-root --no-dev ; fi"
-
-COPY ./app /app/app
-RUN mkdir -p /app/ml_models
-ENV PYTHONPATH=/app
-
-EXPOSE 8002
-
-COPY .env_pro /app/.env
-
-ENV TZ=Asia/Shanghai
-
-CMD ["uvicorn", "app.main:app", "--log-level", "info", "--host", "0.0.0.0", "--port", "8002"]

+ 0 - 30
pyproject.toml

@@ -1,30 +0,0 @@
-[tool.poetry]
-name = "saga_algo_api"
-version = "0.4.16"
-description = "SagaCare Algorithm Web Server"
-authors = ["highing666 <bigseabigdream@gmail.com>"]
-license = "Apache-2.0"
-
-[tool.poetry.dependencies]
-python = "^3.10"
-fastapi = "^0.79.0"
-python-dotenv = "^0.20.0"
-uvicorn = "^0.18.2"
-psycopg2-binary = "^2.9.3"
-SQLAlchemy = "^1.4.40"
-redis = "^4.3.4"
-arrow = "^1.2.2"
-loguru = "^0.6.0"
-httpx = "^0.23.0"
-scikit-learn = "^1.1.2"
-tencentcloud-sdk-python = "^3.0.715"
-pymilvus = "^2.1.1"
-
-[tool.poetry.dev-dependencies]
-pylint = "^2.13.4"
-flake8 = "^4.0.1"
-black = "^22.3.0"
-
-[build-system]
-requires = ["poetry-core>=1.1.14"]
-build-backend = "poetry.core.masonry.api"