diff --git a/Containerfile b/Containerfile --- a/Containerfile +++ b/Containerfile @@ -21,21 +21,15 @@ # Copy from the cache instead of linking since it's a mounted volume ENV UV_LINK_MODE=copy -# Install the project's dependencies using the lockfile and settings -COPY ./uv.lock ./pyproject.toml /app/ -RUN --mount=type=cache,target=/root/.cache/uv \ - uv sync --locked --no-install-project --no-dev - # Define app data volume VOLUME /app/data # Then, add the rest of the project source code and install it COPY . /app -RUN --mount=type=cache,target=/root/.cache/uv \ - uv sync --locked --no-dev +RUN uv sync --locked --no-group dev # Place executables in the environment at the front of the path ENV PATH="/app/.venv/bin:$PATH" # Set entrypoint to run the app using uv -ENTRYPOINT ["uv", "run", "main.py"] +ENTRYPOINT ["python", "main.py"]