idk
This commit is contained in:
@@ -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
@@ -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"]
|
||||
@@ -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 "$@"
|
||||
Reference in New Issue
Block a user