fix: add missing runtime libs and robust startup logging
This commit is contained in:
parent
25d93052d4
commit
72c04ba51c
1 changed files with 5 additions and 2 deletions
|
|
@ -21,12 +21,14 @@ RUN cargo build --release --bin backend-rust
|
||||||
FROM python:3.11-slim-bookworm
|
FROM python:3.11-slim-bookworm
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install runtime dependencies including Node.js for yt-dlp
|
# Install runtime dependencies including Node.js and libssl
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
gnupg \
|
gnupg \
|
||||||
|
libssl3 \
|
||||||
|
zlib1g \
|
||||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||||
&& apt-get install -y nodejs \
|
&& apt-get install -y nodejs \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
@ -46,4 +48,5 @@ EXPOSE 8080
|
||||||
RUN chmod +x /app/server
|
RUN chmod +x /app/server
|
||||||
USER 0
|
USER 0
|
||||||
|
|
||||||
CMD ["/app/server"]
|
# Use a shell wrapper to ensure we see SOMETHING in the logs
|
||||||
|
CMD ["sh", "-c", "echo 'CONTAINER STARTUP INITIATED...' && ls -l /app/server && /app/server 2>&1"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue