Change Docker chances

This commit is contained in:
Esa Kataja
2024-11-20 11:16:24 +02:00
parent 895ac1e276
commit da41fb5990
2 changed files with 9 additions and 6 deletions
+3 -3
View File
@@ -4,11 +4,11 @@ WORKDIR /app
ENV UV_COMPILE_BYTECODE=1
ADD ./pyproject.toml .
ADD ./uv.lock .
ADD ./src .
ADD pyproject.toml uv.lock .
RUN uv sync --frozen --no-dev
ADD /src .
ENV PATH="/app/.venv/bin:$PATH"
ENTRYPOINT []
+5 -2
View File
@@ -1,7 +1,10 @@
services:
web:
pjl:
# Build the image from the Dockerfile in the current directory
build: .
build:
context: .
dockerfile: Dockerfile
image: pjl:0.9
# Host the FastAPI application on port 8000
ports: