docker-react 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
- FROM node:24.11.1 as node
1
+ FROM node:24.12.0 as node
2
2
 
3
- FROM nginx
3
+ FROM nginx:1.29.4
4
4
  ARG DOCKER_REACT_VERSION
5
5
 
6
6
  # Grab and link the node binaries from the node image.
@@ -20,4 +20,5 @@ RUN npm install -g docker-react@"${DOCKER_REACT_VERSION}"
20
20
  COPY ./node_modules ./node_modules
21
21
 
22
22
  # Prepare startup script
23
- COPY ./docker-react-entrypoint.sh /docker-entrypoint.d
23
+ COPY ./docker-react-entrypoint.sh /docker-entrypoint.d/
24
+ RUN chmod +x /docker-entrypoint.d/docker-react-entrypoint.sh
package/README.md CHANGED
@@ -43,7 +43,7 @@ CLI & base image to deploy React applications with docker containers.
43
43
  1. Install `docker-react` and `zod` (zod version should match the peer dependency version exactly)
44
44
 
45
45
  ```sh
46
- npm i -S docker-react zod@4.1.12
46
+ npm i -S docker-react zod@4.3.4
47
47
  ```
48
48
 
49
49
  2. Create environment variable schema (currently only Zod supported but the future others will be available)
package/dist/prep.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { promises as fs } from 'fs';
2
2
  import path from 'path';
3
+ import { Command } from 'commander';
4
+ import z from 'zod';
3
5
  const ENVIRONMENT_DEFINITION_FILE_NAME = 'window.env.js';
4
6
  export function addPrepCommand(program) {
5
7
  return program
package/package.json CHANGED
@@ -31,10 +31,10 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "commander": "^14.0.2",
34
- "zod": "4.1.12"
34
+ "zod": "4.3.4"
35
35
  },
36
36
  "peerDependencies": {
37
- "zod": "4.1.12"
37
+ "zod": "4.3.4"
38
38
  },
39
- "version": "0.1.0"
39
+ "version": "0.1.2"
40
40
  }