fix: add docker CLI and host passwd mount

This commit is contained in:
2026-06-04 12:59:05 +01:00
parent 2348525b9c
commit 161e5f8a86
2 changed files with 6 additions and 14 deletions

View File

@@ -2,25 +2,17 @@ FROM python:3.11-slim
WORKDIR /app
# Install SSH client + docker CLI
RUN apt-get update && apt-get install -y \
openssh-client \
curl \
ca-certificates \
openssh-client curl ca-certificates \
&& install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
&& echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian bookworm stable" > /etc/apt/sources.list.d/docker.list \
&& apt-get update \
&& apt-get install -y docker-ce-cli \
&& apt-get update && apt-get install -y docker-ce-cli \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install flask
RUN pip install --no-cache-dir -r requirements.txt flask
COPY . .
EXPOSE 8000
CMD ["python", "app.py"]
EOF
CMD ["python", "app.py"]