Skip to content

Commit 3783553

Browse files
authored
Updated dockerfile for submodules
Signed-off-by: Srijan-SS02 <[email protected]>
1 parent f418c71 commit 3783553

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Dockerfile

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ WORKDIR /app
77
# Copy the current directory contents into the container at /app
88
COPY . /app
99

10+
RUN apt-get update && \
11+
apt-get install -y --no-install-recommends git openssh-client && \
12+
rm -rf /var/lib/apt/lists/*
13+
14+
RUN --mount=type=ssh git submodule update --init --recursive
15+
1016
# Install any needed packages specified in requirements.txt
1117
RUN pip install --no-cache-dir -r requirements.txt
1218

@@ -18,5 +24,4 @@ ENV FLASK_APP=wsgi.py
1824
ENV FLASK_RUN_HOST=0.0.0.0
1925

2026
# Run the application
21-
CMD ["flask", "run"]
22-
27+
CMD ["flask", "run"]

0 commit comments

Comments
 (0)