Lazar Radojevic commited on
Commit
b7f4fe2
·
1 Parent(s): 5a2430a

switch to pip

Browse files
Files changed (4) hide show
  1. Dockerfile +3 -9
  2. poetry.lock +0 -0
  3. pyproject.toml +0 -27
  4. requirements.txt +0 -0
Dockerfile CHANGED
@@ -4,14 +4,8 @@ FROM python:3.10-slim
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
- # Install Poetry
8
- RUN pip install poetry
9
-
10
- # Copy only the pyproject.toml and poetry.lock files to install dependencies first
11
- COPY pyproject.toml poetry.lock ./
12
-
13
- # Install dependencies using Poetry
14
- RUN poetry install
15
 
16
  # Copy the rest of the application code to the working directory
17
  COPY . .
@@ -20,4 +14,4 @@ COPY . .
20
  EXPOSE 7860
21
 
22
  # Command to run the FastAPI application
23
- CMD ["poetry", "run", "uvicorn", "run:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ COPY requirements.txt .
8
+ RUN pip install -r requirements.txt
 
 
 
 
 
 
9
 
10
  # Copy the rest of the application code to the working directory
11
  COPY . .
 
14
  EXPOSE 7860
15
 
16
  # Command to run the FastAPI application
17
+ CMD ["python", "run.py"]
poetry.lock DELETED
The diff for this file is too large to render. See raw diff
 
pyproject.toml DELETED
@@ -1,27 +0,0 @@
1
- [tool.poetry]
2
- name = "smart-cat-assignment-backend"
3
- version = "0.0.1"
4
- description = "SmartCat Assignment"
5
- authors = ["Lazar Radojevic <[email protected]>"]
6
- readme = "README.md"
7
-
8
- [tool.poetry.dependencies]
9
- python = "^3.10"
10
- mypy = "^1.8.0"
11
- ruff = "^0.3.2"
12
- datasets = "^2.20.0"
13
- sentence-transformers = "^3.0.1"
14
- numpy = "1.26.4"
15
- fastapi = "^0.111.1"
16
- uvicorn = "^0.30.3"
17
-
18
- [tool.poetry.group.dev.dependencies]
19
- black = "^24.1.1"
20
- poethepoet = "^0.24.4"
21
- isort = "^5.13.2"
22
-
23
- [tool.isort]
24
- profile = "black"
25
-
26
- [tool.poe]
27
- include = "./poe/common-tasks.toml"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
requirements.txt ADDED
File without changes