From fe6a3e811d126ce326e4074584e8a3668baf94f6 Mon Sep 17 00:00:00 2001 From: Srijan-SS02 Date: Thu, 2 Jan 2025 18:46:18 +0530 Subject: [PATCH] Updated dockerfile for submodules Signed-off-by: Srijan-SS02 --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 53f495c..7c4e752 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,12 @@ WORKDIR /app # Copy the current directory contents into the container at /app COPY . /app +RUN apt-get update && \ + apt-get install -y --no-install-recommends git openssh-client && \ + rm -rf /var/lib/apt/lists/* + +RUN --mount=type=ssh git submodule update --init --recursive + # Install any needed packages specified in requirements.txt RUN pip install --no-cache-dir -r requirements.txt @@ -18,5 +24,4 @@ ENV FLASK_APP=wsgi.py ENV FLASK_RUN_HOST=0.0.0.0 # Run the application -CMD ["flask", "run"] - +CMD ["flask", "run"] \ No newline at end of file