Update ruff & uv usage
This commit is contained in:
parent
aff565862c
commit
f3ba0f1d09
5 changed files with 58 additions and 59 deletions
|
|
@ -15,7 +15,7 @@ RUN mkdir /app/media
|
|||
COPY uv.lock pyproject.toml /app/
|
||||
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
|
||||
RUN uv sync --frozen --no-install-project
|
||||
RUN uv sync --frozen --no-default-groups --no-install-project
|
||||
|
||||
|
||||
# stage 2
|
||||
|
|
@ -58,7 +58,7 @@ COPY --from=frontend-build /app/src/newsreader/static /app/src/newsreader/static
|
|||
|
||||
COPY ./src /app/src
|
||||
|
||||
RUN uv sync --frozen --extra production
|
||||
RUN uv sync --frozen --only-group production --extra sentry
|
||||
|
||||
RUN useradd -M -u 1000 newsreader
|
||||
RUN chown -R newsreader:newsreader /app
|
||||
|
|
@ -99,4 +99,4 @@ COPY ./bin/docker-entrypoint.sh /app/bin/docker-entrypoint.sh
|
|||
COPY --from=backend /app/src/ /app/src/
|
||||
|
||||
COPY --from=backend /bin/uv /bin/uv
|
||||
RUN uv sync --frozen --extra testing --extra development
|
||||
RUN uv sync --frozen --group development
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue