@jakubmazanec/carson-templates 2.1.0 → 2.1.1-next.029b975

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": "@jakubmazanec/carson-templates",
3
- "version": "2.1.0",
3
+ "version": "2.1.1-next.029b975",
4
4
  "description": "Collection of Carson templates.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,7 +8,6 @@ let lines = [];
8
8
  for (let project of workspace.projects) {
9
9
  if (project.config.deployment?.appName) {
10
10
  lines.push(`COPY --from=build /workspace/${project.relativePath}/build /workspace/${project.relativePath}/build`);
11
- lines.push(`COPY --from=build /workspace/${project.relativePath}/node_modules /workspace/${project.relativePath}/node_modules`);
12
11
  lines.push(`COPY --from=build /workspace/${project.relativePath}/package.json /workspace/${project.relativePath}/package.json`);
13
12
  } else {
14
13
  if (project.packageJson.bin) {
@@ -16,7 +15,6 @@ for (let project of workspace.projects) {
16
15
  }
17
16
 
18
17
  lines.push(`COPY --from=build /workspace/${project.relativePath}/build /workspace/${project.relativePath}/build`);
19
- lines.push(`COPY --from=build /workspace/${project.relativePath}/node_modules /workspace/${project.relativePath}/node_modules`);
20
18
  lines.push(`COPY --from=build /workspace/${project.relativePath}/package.json /workspace/${project.relativePath}/package.json`);
21
19
  }
22
20
  }
@@ -53,16 +51,16 @@ COPY --link . .
53
51
  # Build
54
52
  RUN npm run build
55
53
 
56
- # Remove development dependencies
57
- RUN npm prune --omit=dev
58
-
59
54
  # Final stage for app image
60
55
  FROM base
61
56
 
62
57
  # Copy files
63
- COPY --from=build /workspace/node_modules /workspace/node_modules
58
+ COPY package-lock.json package.json /workspace/
64
59
  <%- lines.join('\n') %>
65
60
 
61
+ # Install dependencies
62
+ RUN npm ci --omit=dev --ignore-scripts
63
+
66
64
  # Start the server
67
65
  WORKDIR /workspace/apps/somewhere
68
66
  EXPOSE 5000