Skip to content

Commit 2c626fd

Browse files
authored
fix: Install project as editable package (#72)
1 parent 1deb0c9 commit 2c626fd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@ ENV PATH="/opt/python_venv/bin:${PATH}"
100100
# Copy application code
101101
COPY --from=download-sd-scripts /opt/sd-scripts /opt/sd-scripts
102102

103-
# Pre-compile Python bytecode
103+
# Install project and Pre-compile Python bytecode
104104
RUN <<EOF
105105
cd /opt/sd-scripts
106106

107+
UV_PROJECT_ENVIRONMENT="/opt/python_venv" uv pip install --editable .
108+
107109
python -m compileall .
108110
EOF
109111

0 commit comments

Comments
 (0)