Skip to content

Commit 2eb7527

Browse files
committed
Move instead of copy uv-installed binaries
1 parent c07a28f commit 2eb7527

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ RUN if [ "$DEPENDENCY_MANAGER" = "uv" ]; then uv sync --frozen --no-dev --no-ins
3232
# Make installed binaries available for POSIX compliant scripts
3333
ENV PATH="/app/.venv/bin:$PATH"
3434
# Patch for scripts that use a hard-coded path to uwsgi (django-run)
35-
RUN if [ "$DEPENDENCY_MANAGER" = "uv" ]; then cp /app/.venv/bin/uwsgi /usr/local/bin/uwsgi; fi
35+
RUN if [ "$DEPENDENCY_MANAGER" = "uv" ]; then mv /app/.venv/bin/uwsgi /usr/local/bin/uwsgi; fi
3636
# Patch for scripts that use a hard-coded path to gunicorn (asgi-run)
37-
RUN if [ "$DEPENDENCY_MANAGER" = "uv" ]; then cp /app/.venv/bin/gunicorn /usr/local/bin/gunicorn; fi
37+
RUN if [ "$DEPENDENCY_MANAGER" = "uv" ]; then mv /app/.venv/bin/gunicorn /usr/local/bin/gunicorn; fi
3838
# Patch for scripts that use a hard-coded path to python (django-run, asgi-run)
3939
ENV PYTHONPATH="/app/.venv/lib/python3.11/site-packages/:$PYTHONPATH"
4040

0 commit comments

Comments
 (0)