15 lines
349 B
Docker
15 lines
349 B
Docker
FROM python:3.12-slim-trixie
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
|
|
|
# Copy the project into the image
|
|
COPY . /app
|
|
|
|
# Disable development dependencies
|
|
ENV UV_NO_DEV=1
|
|
|
|
# Sync the project into a new environment, asserting the lockfile is up to date
|
|
WORKDIR /app
|
|
RUN uv sync --locked
|
|
# Run the application
|
|
CMD ["uv", "run", "main.py"]
|