Skip to content

Commit 03b4e65

Browse files
committed
add uv for package management
1 parent 57ab39e commit 03b4e65

File tree

5 files changed

+476
-1469
lines changed

5 files changed

+476
-1469
lines changed

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
FROM python:3.8
1+
FROM python:3.13
22
WORKDIR /app
33

44
ADD pyproject.toml /app/pyproject.toml
55

6-
RUN pip install poetry
7-
RUN poetry install
8-
6+
RUN pip install uv
7+
RUN uv venv
8+
RUN uv pip install .
9+
RUN uv pip install bcrypt
10+
RUN uv pip install "passlib[bcrypt]"
911
COPY ./ /app
1012

1113
EXPOSE 8000
1214

13-
CMD ["poetry", "run", "fastapi", "run", "app.py"]
15+
CMD ["uv", "run", "main.py"]

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
version: "3"
2-
31
services:
42
app:
53
build: .
64
ports:
75
- "8081:8080"
8-
9-
command: bash -c "alembic upgrade head"
106

117
depends_on:
128
- db

0 commit comments

Comments
 (0)