fix: consolidate RUN commands in Dockerfile for improved layer caching
This commit is contained in:
+4
-3
@@ -5,9 +5,10 @@ ENV PYTHONUNBUFFERED=1
|
||||
WORKDIR /app
|
||||
|
||||
COPY pyproject.toml uv.lock /app/
|
||||
RUN apk --no-cache update && apk --no-cache upgrade
|
||||
RUN pip install --no-cache-dir uv
|
||||
RUN uv sync --no-dev --no-install-project # Install only dependencies, not the local project package
|
||||
|
||||
RUN apk --no-cache update && apk --no-cache upgrade \
|
||||
&& pip install --no-cache-dir uv \
|
||||
&& uv sync --no-dev --no-install-project # Install only dependencies, not the local project package
|
||||
|
||||
COPY . /app/
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user