Commit 5472ffa
Fix: Correct Dockerfile syntax errors in production build
Fixed two syntax errors in the frontend production Dockerfile that were masked by earlier build failures:
1. Line 6: COPY command syntax error
- Changed: COPY --chown=node:node package.json package.json ./
- To: COPY --chown=node:node package*.json ./
- The original attempted to copy package.json twice (invalid syntax)
- Now uses glob pattern to properly copy package.json and package-lock.json if present
- Matches the pattern used in backend/Dockerfile.prod:5
2. Lines 15-16: Missing equals signs in ARG and ENV directives
- Changed: ARG CUSTOM_REQUEST_HEADER nAb3kY-S%qE#4!d
- To: ARG CUSTOM_REQUEST_HEADER=nAb3kY-S%qE#4!d
- Changed: ENV REACT_APP_CUSTOM_REQUEST_HEADER $CUSTOM_REQUEST_HEADER
- To: ENV REACT_APP_CUSTOM_REQUEST_HEADER=$CUSTOM_REQUEST_HEADER
- Ensures proper Dockerfile syntax compliance
These errors were present in the original file but were not caught because the build was failing earlier due to code issues (duplicate object keys and missing exports) that have been fixed in PR #2086.
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>1 parent 293c618 commit 5472ffa
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments