File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,17 @@ RUN addgroup -g 1000 app && adduser -u 1000 -G app -s /bin/sh -D app
3939WORKDIR /app
4040
4141# Copy the virtual environment from the uv stage
42- COPY --from=uv --chown=app:app /app/.venv /app/.venv
42+ COPY --from=uv /app/.venv /app/.venv
4343
4444# Copy the source code (needed for non-editable installs)
45- COPY --from=uv --chown=app:app /app/src /app/src
45+ COPY --from=uv /app/src /app/src
46+
47+ # Fix broken Python symlinks from uv stage - point to system Python
48+ RUN rm -f /app/.venv/bin/python* && \
49+ ln -s /usr/local/bin/python3 /app/.venv/bin/python && \
50+ ln -s /usr/local/bin/python3 /app/.venv/bin/python3 && \
51+ ln -s /usr/local/bin/python3 /app/.venv/bin/python3.13 && \
52+ chown -R app:app /app
4653
4754# Place executables in the environment at the front of the path
4855ENV PATH="/app/.venv/bin:$PATH"
You can’t perform that action at this time.
0 commit comments