srijan9994 commited on
Commit
1e99658
·
1 Parent(s): f364a66

docker modify for env

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. package.json +1 -2
Dockerfile CHANGED
@@ -14,7 +14,7 @@ RUN npm install
14
  COPY . .
15
 
16
  # Build the React application
17
- RUN npm run build
18
 
19
  # Serve the built React application using a simple HTTP server
20
  RUN npm install -g serve
 
14
  COPY . .
15
 
16
  # Build the React application
17
+ RUN node create-env.js && npm run build
18
 
19
  # Serve the built React application using a simple HTTP server
20
  RUN npm install -g serve
package.json CHANGED
@@ -18,8 +18,7 @@
18
  "start": "react-scripts start",
19
  "build": "react-scripts build",
20
  "test": "react-scripts test",
21
- "eject": "react-scripts eject",
22
- "prebuild": "node create-env.js"
23
  },
24
  "eslintConfig": {
25
  "extends": [
 
18
  "start": "react-scripts start",
19
  "build": "react-scripts build",
20
  "test": "react-scripts test",
21
+ "eject": "react-scripts eject"
 
22
  },
23
  "eslintConfig": {
24
  "extends": [