Skip to content

Commit e73c1ee

Browse files
committed
Use pip instead of uv in docker
1 parent e3fd5cd commit e73c1ee

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
FROM python:3.12-slim-bookworm
2-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
32

43
# Set the working directory
54
WORKDIR /app
65

76
COPY pyproject.toml ./
8-
COPY uv.lock ./
97

108
COPY stac_search/ ./stac_search/
119

12-
RUN uv sync --frozen
10+
RUN pip install --no-cache-dir .
1311

1412
# Expose the port the app runs on
1513
EXPOSE 8000
1614

1715
# Command to run the FastAPI app
18-
CMD ["uv", "run", "uvicorn", "stac_search.api:app", "--host", "0.0.0.0", "--port", "8000"]
16+
CMD ["uvicorn", "stac_search.api:app", "--host", "0.0.0.0", "--port", "8000"]

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
labels:
1616
caddy: stac-semantic-search.labs.sunu.in
1717
caddy.reverse_proxy: "{{upstreams 8000}}"
18-
command: uv run uvicorn stac_search.api:app --host 0.0.0.0 --port 8000 --reload
18+
command: uvicorn stac_search.api:app --host 0.0.0.0 --port 8000 --reload
1919

2020
networks:
2121
caddy:

0 commit comments

Comments
 (0)