This commit is contained in:
2025-09-20 01:10:56 +02:00
parent 64b7dda909
commit 8360ffbb6a
3 changed files with 15 additions and 2 deletions
+2
View File
@@ -63,4 +63,6 @@ RUN chmod +x /usr/bin/entry.sh
ENV DBUS_SYSTEM_BUS_ADDRESS unix:path=/host/run/dbus/system_bus_socket
RUN sed -i 's/\r$//' /usr/bin/entry.sh
CMD ["/usr/bin/entry.sh"]
+4 -2
View File
@@ -29,7 +29,9 @@ COPY src/pyproject.toml src/poetry.lock* ./
RUN poetry lock && poetry install --no-root
COPY src/ .
RUN chmod +x /app/entry.sh
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["/app/entry.sh"]
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
set -e
if [ -f "/app/entry.sh" ]; then
echo "Fixing line endings for /app/entry.sh..."
sed -i 's/\r$//' /app/entry.sh
fi
exec "$@"