@eventcatalog/create-eventcatalog 2.0.9 → 2.0.10

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/dist/index.js CHANGED
@@ -22655,7 +22655,7 @@ function validateNpmName(name) {
22655
22655
  var package_default = {
22656
22656
  name: "@eventcatalog/create-eventcatalog",
22657
22657
  description: "Create EventCatalog with one command",
22658
- version: "2.0.9",
22658
+ version: "2.0.10",
22659
22659
  bin: {
22660
22660
  "create-catalog": "./dist/index.js"
22661
22661
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eventcatalog/create-eventcatalog",
3
3
  "description": "Create EventCatalog with one command",
4
- "version": "2.0.9",
4
+ "version": "2.0.10",
5
5
  "bin": {
6
6
  "create-catalog": "./dist/index.js"
7
7
  },
@@ -1,11 +1,23 @@
1
+ ## Stage 1: Build the app
1
2
  FROM node:lts AS build
3
+
2
4
  WORKDIR /app
5
+
6
+ # Install dependencies
7
+ COPY package.json package-lock.json ./
8
+ RUN npm install
9
+
10
+ # Copy source code
3
11
  COPY . .
4
- # Fix for astro in docker https://github.com/withastro/astro/issues/2596
12
+
13
+ # Fix for Astro in Docker: https://github.com/withastro/astro/issues/2596
5
14
  ENV NODE_OPTIONS=--max_old_space_size=2048
6
- RUN npm i
15
+ # Build the app
7
16
  RUN npm run build
8
17
 
9
- FROM httpd:2.4 AS runtime
10
- COPY --from=build /app/dist /usr/local/apache2/htdocs/
11
- EXPOSE 80
18
+
19
+ ## Stage 2: Serve app with httpd server
20
+ FROM httpd:2.4
21
+
22
+ # Copy built app to serve
23
+ COPY --from=build /app/dist /usr/local/apache2/htdocs
@@ -0,0 +1,8 @@
1
+ .eventcatalog-core/
2
+ .git/
3
+ dist/
4
+ node_modules/
5
+ .gitignore
6
+ .dockerignore
7
+ Dockerfile
8
+ README.md