Fix venv add to path

This commit is contained in:
Niels Geens
2025-03-18 09:46:16 +01:00
parent 5c1ef4d9e7
commit 3ea5ba87a9
4 changed files with 12 additions and 3 deletions

View File

@@ -73,6 +73,9 @@ COPY --from=web-build /app/dist /root/static/
RUN for venv in /root/venvs/*/bin; do \
echo "export PATH=\"$venv:\$PATH\"" >> /etc/profile.d/sia.sh ; \
done
RUN for venv in /root/venvs/*/bin; do \
echo "export PATH=\"$venv:\$PATH\"" > "/etc/profile.d/venv_$(basename "$(dirname "$venv")").sh" \
done
WORKDIR /root/desktop
ENTRYPOINT ["/bin/bash", "-l", "-c"]