Openstatus
www.openstatus.dev
1effective: |
2 ignore:
3 - node_modules
4 - /apps/docs
5 - /apps/screenshot-service
6 - /apps/web
7 - /apps/dashboard
8 - /apps/status-page
9 - /apps/workflows
10 - /packages/api
11 - /packages/integrations/vercel
12 builders:
13 build:
14 fromImage:
15 path: oven/bun
16 digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025
17 label:
18 org.opencontainers.image.base.name: docker.io/oven/bun:latest
19 org.opencontainers.image.base.digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025
20 workdir: /app/apps/server
21 env:
22 NODE_ENV: production
23 copy:
24 - paths:
25 - .
26 target: /app/
27 - fromBuilder: install
28 paths:
29 - /app/node_modules
30 target: /app/node_modules
31 run:
32 - bun build --compile --sourcemap src/index.ts --outfile=app
33 install:
34 fromImage:
35 path: oven/bun
36 digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025
37 label:
38 org.opencontainers.image.base.name: docker.io/oven/bun:latest
39 org.opencontainers.image.base.digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025
40 workdir: /app/
41 run:
42 - bun install --production --ignore-scripts --frozen-lockfile --verbose
43 cache:
44 - target: /root/.bun/install/cache
45 bind:
46 - target: bunfig.toml
47 source: bunfig.toml
48 - target: package.json
49 source: package.json
50 - target: apps/server/package.json
51 source: apps/server/package.json
52 - target: packages/analytics/package.json
53 source: packages/analytics/package.json
54 - target: packages/db/package.json
55 source: packages/db/package.json
56 - target: packages/emails/package.json
57 source: packages/emails/package.json
58 - target: packages/error/package.json
59 source: packages/error/package.json
60 - target: packages/regions/package.json
61 source: packages/regions/package.json
62 - target: packages/tinybird/package.json
63 source: packages/tinybird/package.json
64 - target: packages/tracker/package.json
65 source: packages/tracker/package.json
66 - target: packages/upstash/package.json
67 source: packages/upstash/package.json
68 - target: packages/utils/package.json
69 source: packages/utils/package.json
70 - target: packages/tsconfig/package.json
71 source: packages/tsconfig/package.json
72 - target: packages/assertions/package.json
73 source: packages/assertions/package.json
74 - target: packages/regions/package.json
75 source: packages/regions/package.json
76 fromImage:
77 path: debian
78 digest: sha256:f807f4b16002c623115b0247dca6a55711c6b1ae821dc64fb8a2339e4ce2115d
79 label:
80 io.dofigen.version: 2.5.0
81 org.opencontainers.image.base.name: docker.io/debian:bullseye-slim
82 org.opencontainers.image.base.digest: sha256:f807f4b16002c623115b0247dca6a55711c6b1ae821dc64fb8a2339e4ce2115d
83 copy:
84 - fromBuilder: build
85 paths:
86 - /app/apps/server/app
87 target: /bin/
88 chmod: '555'
89 entrypoint:
90 - /bin/app
91 expose:
92 - port: 3000
93images:
94 docker.io:
95 library:
96 debian:
97 bullseye-slim:
98 digest: sha256:f807f4b16002c623115b0247dca6a55711c6b1ae821dc64fb8a2339e4ce2115d
99 oven:
100 bun:
101 latest:
102 digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025
103resources:
104 dofigen.yml:
105 hash: 80f5ad94c76e0469d736252fb05adbb099557c1aefb96587f5688a351022de4c
106 content: |
107 ignore:
108 - node_modules
109 - /apps/docs
110 - /apps/screenshot-service
111 - /apps/web
112 - /apps/dashboard
113 - /apps/status-page
114 - /apps/workflows
115 - /packages/api
116 - /packages/integrations/vercel
117 builders:
118 install:
119 fromImage: oven/bun
120 workdir: /app/
121 # Copy project
122 bind:
123 - bunfig.toml
124 - package.json
125 - apps/server/package.json
126 - packages/analytics/package.json
127 - packages/db/package.json
128 - packages/emails/package.json
129 - packages/error/package.json
130 - packages/regions/package.json
131 - packages/tinybird/package.json
132 - packages/tracker/package.json
133 - packages/upstash/package.json
134 - packages/utils/package.json
135 - packages/tsconfig/package.json
136 - packages/assertions/package.json
137 - packages/regions/package.json
138
139 # Install dependencies
140 run: bun install --production --ignore-scripts --frozen-lockfile --verbose
141 cache:
142 - /root/.bun/install/cache
143 build:
144 fromImage: oven/bun
145 workdir: /app/apps/server
146 copy:
147 - . /app/
148 - fromBuilder: install
149 source: /app/node_modules
150 target: /app/node_modules
151 # Should set env to production here
152 # Compile the TypeScript application
153 env:
154 NODE_ENV: production
155 run: bun build --compile --sourcemap src/index.ts --outfile=app
156 fromImage: debian:bullseye-slim
157 copy:
158 - fromBuilder: build
159 source: /app/apps/server/app
160 target: /bin/
161 chmod: "555"
162 expose: 3000
163 entrypoint: /bin/app