File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ docker compose up -d
140140### 🏗️ Option B: Clone and build
141141
142142``` bash
143+ sudo apt install -y git git-lfs
143144git clone https://github.com/Fortiphyd/GRFICSv3.git
144145cd GRFICSv3
145146docker compose build
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ WORKDIR /build/simulation
1414RUN make
1515
1616
17-
1817# ---- Stage 2: Runtime image ----
1918FROM python:3.11-slim@sha256:7a3ed1226224bcc1fe5443262363d42f48cf832a540c1836ba8ccbeaadf8637c
2019
@@ -41,6 +40,17 @@ COPY ./nginx_config /etc/nginx/sites-enabled/default
4140RUN chown -R www-data:www-data /var/www/
4241# RUN chmod +x /var/www/html/data/index.php
4342
43+ RUN set -e; \
44+ echo "Checking for Git LFS pointer files..." ; \
45+ if grep -R --binary-files=without-match -n "version https://git-lfs.github.com/spec/v1" /var/www/html/Build 2>/dev/null; then \
46+ echo "" ; \
47+ echo "ERROR: Git LFS files not present (pointer files detected)." ; \
48+ echo "Install git-lfs, then run: git lfs pull" ; \
49+ echo "Then try building again" ; \
50+ exit 1; \
51+ fi
52+
53+
4454# Set working directory
4555WORKDIR /app
4656
You can’t perform that action at this time.
0 commit comments