From 3783553018e133cb28a01a82bd51d9efe92742fe Mon Sep 17 00:00:00 2001 From: Srijan Srivastava Date: Thu, 2 Jan 2025 18:50:55 +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