Skip to content

Commit d428c54

Browse files
committed
docker file merged
1 parent e07f590 commit d428c54

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "shared_migrations"]
22
path = shared_migrations
3-
url = git@github.com:Code4GovTech/shared-models-migrations.git
3+
url = https://github.com/Code4GovTech/shared-models-migrations.git

Dockerfile

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ FROM python:3.12-slim
55
WORKDIR /app
66

77
# Copy the current directory contents into the container at /app
8+
9+
RUN apt-get update && \
10+
apt-get install -y --no-install-recommends git openssh-client && \
11+
rm -rf /var/lib/apt/lists/*
12+
813
COPY . /app
914

15+
RUN --mount=type=ssh git submodule update --init --recursive
16+
1017
# Install any needed packages specified in requirements.txt
1118
RUN pip install --no-cache-dir -r requirements.txt
1219

@@ -18,5 +25,4 @@ ENV FLASK_APP=wsgi.py
1825
ENV FLASK_RUN_HOST=0.0.0.0
1926

2027
# Run the application
21-
CMD ["flask", "run"]
22-
28+
CMD ["flask", "run"]

0 commit comments

Comments
 (0)