Skip to content

Commit f89e8ae

Browse files
committed
Add hero flag base64 parts and decode them in the frontend Docker build.
1 parent cbe1263 commit f89e8ae

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

frontend/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ COPY package.json package-lock.json ./
1212
RUN npm ci || npm install
1313

1414
COPY . .
15-
# Hero flag is stored as base64 text in git (binary uploads are awkward via CI).
15+
# Hero flag is stored as base64 text in git (split parts for easier commits).
1616
# Decode before `next build` so the file is part of the public/ standalone output.
1717
RUN if [ -f public/images/american_flag.jpg.b64 ]; then \
1818
base64 -d public/images/american_flag.jpg.b64 > public/images/american_flag.jpg; \
19+
elif [ -f public/images/american_flag.jpg.b64.part1 ]; then \
20+
cat public/images/american_flag.jpg.b64.part1 public/images/american_flag.jpg.b64.part2 \
21+
| base64 -d > public/images/american_flag.jpg; \
1922
fi
2023
RUN npm run build
2124

0 commit comments

Comments
 (0)