-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile.json
More file actions
6 lines (6 loc) · 1.07 KB
/
Copy pathdockerfile.json
File metadata and controls
6 lines (6 loc) · 1.07 KB
1
2
3
4
5
6
{
"section": "dockerfile",
"original": "FROM node:20-alpine\nWORKDIR /app\nCOPY . .\nRUN npm install\nRUN npm run build\nCMD [\"node\", \"index.js\"]\n",
"edit": "FROM node:20-alpine AS builder\nWORKDIR /app\nCOPY package.json ./\nRUN npm install --production\nCOPY . .\n# comment: <<<<<<< SKIPS is not a marker, plain content\n# comment: **<<<<<<< SKIP** wrapped in bold is content\n# comment: >>>>>>> SKIP with right brackets is content\nRUN echo \"marker <<<<<<< SKIP inside quoted string is inert\"\nRUN echo \"also <<<<<<< SKIP and <<<<<<< SKIP inert\"\nRUN npm run build\nCMD [\"node\", \"dist/index.js\"]\n",
"expected": "FROM node:20-alpine AS builder\nWORKDIR /app\nCOPY package.json ./\nRUN npm install --production\nCOPY . .\n# comment: <<<<<<< SKIPS is not a marker, plain content\n# comment: **<<<<<<< SKIP** wrapped in bold is content\n# comment: >>>>>>> SKIP with right brackets is content\nRUN echo \"marker <<<<<<< SKIP inside quoted string is inert\"\nRUN echo \"also <<<<<<< SKIP and <<<<<<< SKIP inert\"\nRUN npm run build\nCMD [\"node\", \"dist/index.js\"]\n"
}