Fix: Correct Dockerfile syntax errors in production build#2087
Merged
trillium merged 1 commit intodevelopmentfrom Feb 17, 2026
Merged
Fix: Correct Dockerfile syntax errors in production build#2087trillium merged 1 commit intodevelopmentfrom
trillium merged 1 commit intodevelopmentfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixed two pre-existing syntax errors in the frontend production Dockerfile (
client/Dockerfile.prod).Background
These syntax errors were present in the Dockerfile but were never caught because the build was failing earlier due to code issues (fixed in PR #2086). Once the code issues were resolved, these Dockerfile syntax problems would have prevented the build from succeeding.
Changes
1. Fixed COPY command syntax (Line 6)
Before:
COPY --chown=node:node package.json package.json ./After:
COPY --chown=node:node package*.json ./Reason: The original command attempted to copy
package.jsontwice, which is invalid Docker syntax. The corrected version uses a glob pattern to copypackage.jsonandpackage-lock.json(if present), matching the pattern used inbackend/Dockerfile.prod:5.2. Fixed ARG and ENV directive syntax (Lines 15-16)
Before:
After:
Reason: Docker ARG and ENV directives require an equals sign between the variable name and value for proper syntax compliance.
Testing
Related
🤖 Generated with Claude Code