From 2348525b9cd96476ab08f4765615c8125d3d9e95 Mon Sep 17 00:00:00 2001 From: ameniboukattaya Date: Thu, 4 Jun 2026 12:43:43 +0100 Subject: [PATCH] Fix docker commands --- platform/Dockerfile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/platform/Dockerfile b/platform/Dockerfile index 3c46d19..d314280 100644 --- a/platform/Dockerfile +++ b/platform/Dockerfile @@ -2,15 +2,25 @@ 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 \ + && 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 \ + && rm -rf /var/lib/apt/lists/* + COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt RUN pip install flask -# Add SSH client -RUN apt-get update && apt-get install -y openssh-client && rm -rf /var/lib/apt/lists/* - COPY . . EXPOSE 8000 -CMD ["python", "app.py"] \ No newline at end of file +CMD ["python", "app.py"] +EOF \ No newline at end of file