diff --git a/Dockerfile b/Dockerfile index 55437cc..1c4e24f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,8 +31,14 @@ RUN if [ -n "$VERSION" ]; then \ echo "📝 Generated version.js with VERSION=$VERSION, IS_RELEASE=$IS_RELEASE"; \ fi -# Build the application -RUN npm run build +# Build the application (skip prebuild if we already generated version.js) +RUN if [ -n "$VERSION" ]; then \ + echo "🚀 Building with pre-generated version.js" && \ + npx react-scripts build; \ + else \ + echo "🚀 Building with version-check.js" && \ + npm run build; \ + fi # Production stage FROM node:24-alpine AS production diff --git a/package.json b/package.json index c77260a..f9e07e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jmespath-playground", - "version": "1.1.5", + "version": "1.1.6", "description": "A React-based web application for testing JMESPath expressions against JSON data", "main": "index.js", "scripts": {