File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,17 @@ FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
22
33# Install required packages
44ENV DEBIAN_FRONTEND=noninteractive
5- RUN apt update && apt install -y python3 python3-pip python3-venv python3-dev ffmpeg sudo python-is-python3 rabbitmq-server
5+ RUN apt update && apt install -y \
6+ python3 \
7+ python3-pip \
8+ python3-venv \
9+ python3-dev \
10+ python-is-python3 \
11+ ffmpeg \
12+ sudo \
13+ rabbitmq-server \
14+ tini \
15+ && rm -rf /var/lib/apt/lists/*
616
717# Copy project into image
818WORKDIR /app
@@ -15,4 +25,5 @@ RUN pip install --no-cache-dir -r requirements.txt
1525COPY docker-entrypoint.sh /entrypoint.sh
1626RUN chmod +x /entrypoint.sh
1727
18- ENTRYPOINT ["/entrypoint.sh" ]
28+ # Use tini to handle zombies
29+ ENTRYPOINT ["/usr/bin/tini" , "--" , "/entrypoint.sh" ]
Original file line number Diff line number Diff line change 11#! /bin/bash
2- # Starte RabbitMQ im Hintergrund
2+ # Starting RabbitMQ in background
33sudo service rabbitmq-server start
44
5- # Starte die Python-Anwendung
6- exec python start.py
5+ # Starting the actual python app
6+ exec python start.py
You can’t perform that action at this time.
0 commit comments