@smi-digital/create-smi-app 2.4.3 → 2.4.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smi-digital/create-smi-app",
3
- "version": "2.4.3",
3
+ "version": "2.4.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -3,21 +3,35 @@
3
3
  # Place this in your /backend folder
4
4
  # ========================================================
5
5
 
6
- FROM node:24-alpine
6
+ # Stage 1: Builder
7
+ FROM node:24-alpine as builder
7
8
  # Installing libvips-dev for sharp Compatibility
8
9
  RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev vips-dev curl > /dev/null 2>&1
9
- ARG NODE_ENV=production
10
- ENV NODE_ENV=${NODE_ENV}
11
10
 
12
11
  WORKDIR /opt/
13
- COPY package.json ./
12
+ COPY package.json package-lock.json* ./
14
13
  RUN npm install -g node-gyp
15
- RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install --only=production
14
+ RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install
16
15
  ENV PATH=/opt/node_modules/.bin:$PATH
17
16
 
18
17
  WORKDIR /opt/app
19
18
  COPY . .
20
19
  RUN npm run build
21
20
 
21
+ # Stage 2: Production
22
+ FROM node:24-alpine
23
+ RUN apk update && apk add --no-cache vips-dev curl > /dev/null 2>&1
24
+ ARG NODE_ENV=production
25
+ ENV NODE_ENV=${NODE_ENV}
26
+
27
+ WORKDIR /opt/
28
+ COPY package.json package-lock.json* ./
29
+ RUN npm install -g node-gyp
30
+ RUN npm config set fetch-retry-maxtimeout 600000 -g && npm install --omit=dev
31
+ ENV PATH=/opt/node_modules/.bin:$PATH
32
+
33
+ WORKDIR /opt/app
34
+ COPY --from=builder /opt/app ./
35
+
22
36
  EXPOSE 1337
23
37
  CMD ["npm", "run", "start"]
@@ -28,4 +28,4 @@ ENV HOST=0.0.0.0
28
28
  ENV PORT=4321
29
29
 
30
30
  # Start the server (Adjust entrypoint depending on your Astro Node/Bun adapter)
31
- CMD ["bun", "run", "./dist/server/entry.mjs"]
31
+ CMD ["bun", "./dist/server/entry.mjs"]
@@ -7,7 +7,7 @@
7
7
  # ==============================================================================
8
8
 
9
9
  # Internal Docker Network routing (Do not change)
10
- PUBLIC_API_URL=http://__APP_NAME__-strapi:1337
10
+ STRAPI_URL=http://__APP_NAME__-strapi:1337
11
11
 
12
12
  # Add your client-specific 3rd party secrets below
13
13
  # STRIPE_SECRET_KEY=sk_live_...