-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.dev
More file actions
53 lines (48 loc) · 2.53 KB
/
Copy pathDockerfile.dev
File metadata and controls
53 lines (48 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
FROM oven/bun:1.3.14@sha256:e10577f0db68676a7024391c6e5cb4b879ebd17188ab750cf10024a6d700e5c4
WORKDIR /app
# 1. Copy only package.json files first so the install layer is cached
# independently of source changes. Update this list when adding a new app.
COPY package.json bun.lock bunfig.toml ./
COPY pwas/pwa-auth/package.json pwas/pwa-auth/
COPY packages/cloud/package.json packages/cloud/
COPY packages/accounts/package.json packages/accounts/
COPY packages/api-docs/package.json packages/api-docs/
COPY packages/assistant/package.json packages/assistant/
COPY packages/capabilities/package.json packages/capabilities/
COPY packages/contacts/package.json packages/contacts/
COPY packages/core/package.json packages/core/
COPY packages/cloud-cli/package.json packages/cloud-cli/
COPY packages/dashboard/package.json packages/dashboard/
COPY packages/faq/package.json packages/faq/
COPY packages/kit/package.json packages/kit/
COPY packages/files/package.json packages/files/
COPY packages/grids/package.json packages/grids/
COPY packages/gateway/package.json packages/gateway/
COPY packages/gateway-ops/package.json packages/gateway-ops/
COPY packages/ipa-hosts/package.json packages/ipa-hosts/
COPY packages/mail/package.json packages/mail/
COPY packages/notebooks/package.json packages/notebooks/
COPY packages/oauth/package.json packages/oauth/
COPY packages/pulse/package.json packages/pulse/
COPY packages/proxy-auth/package.json packages/proxy-auth/
COPY packages/quotes/package.json packages/quotes/
COPY packages/spaces/package.json packages/spaces/
COPY packages/tools/package.json packages/tools/
COPY packages/ui/package.json packages/ui/
COPY packages/venue/package.json packages/venue/
COPY packages/weather/package.json packages/weather/
COPY fixtures/ui-ssr/package.json fixtures/ui-ssr/
COPY docs-site/package.json docs-site/
# --ignore-scripts: skip postinstall hooks. The base image already
# ships bun, but `bun-plugin-tailwind` declares `bun >=1.0.0` as a peer dep, so
# Bun's installer pulls the npm `bun` package into the lockfile. Its postinstall
# tries to extract the platform-specific binary (@oven/bun-linux-*) and fails
# inside the build sandbox. We don't need any postinstalls here — services that
# need native deps (filegate → sharp/libvips) run in their own pre-built images.
RUN bun install --frozen-lockfile --ignore-scripts
# 2. Source comes after install. Volume mounts in compose.dev.yml overlay
# live source on top of these defaults at runtime.
COPY packages/ packages/
COPY styles.css ./
RUN bun run --cwd packages/ui build
EXPOSE 3000