Skip to content

Commit

Permalink
faster build please
Browse files Browse the repository at this point in the history
  • Loading branch information
soof-golan committed Oct 10, 2024
1 parent 3201503 commit 37d6b59
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
FROM python:3.11-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv

ENV PYTHONUNBUFFERED True
ENV PYTHONUNBUFFERED=True \
UV_SYSTEM_PYTHON=1

# Copy dependencies
COPY server/requirements.txt /tmp/requirements.txt

RUN apt-get update && apt-get install -y \
git \
&& pip install -r /tmp/requirements.txt --no-cache-dir \
&& rm /tmp/requirements.txt \
&& apt-get purge -y --auto-remove git \
&& rm -rf /var/lib/apt/lists/*
RUN --mount=type=cache,target=/root/.cache/pip \
uv pip install -r /tmp/requirements.txt

WORKDIR /app

Expand Down

0 comments on commit 37d6b59

Please sign in to comment.