File tree Expand file tree Collapse file tree 4 files changed +28
-8
lines changed
Expand file tree Collapse file tree 4 files changed +28
-8
lines changed Original file line number Diff line number Diff line change 22node_modules
33.pnp
44.pnp.js
5+ bun.lockb
56
67# Testing
78coverage
89* .log
10+ * .test.ts
11+ * .test.tsx
12+ * .spec.ts
13+ * .spec.tsx
14+ __tests__
15+ __mocks__
916
1017# Production
1118.output
@@ -45,8 +52,14 @@ yarn-error.log*
4552README.md
4653CHANGELOG.md
4754LICENSE
55+ * .md
4856
4957# Docker
5058Dockerfile
5159docker-compose.yml
5260.dockerignore
61+
62+ # Scripts (unless needed)
63+ scripts
64+ docker-compose.yml
65+ .dockerignore
Original file line number Diff line number Diff line change 6161 CACHEBUST=${{ github.sha }}
6262 cache-from : type=gha
6363 cache-to : type=gha,mode=max
64+ platforms : linux/arm64
6465
6566 - name : Trigger Coolify deployment
6667 run : |
Original file line number Diff line number Diff line change 22FROM oven/bun:1-alpine AS base
33WORKDIR /app
44
5- # Install dependencies
5+ # Install dependencies stage
66FROM base AS deps
77COPY package.json bun.lock* ./
88RUN bun install --frozen-lockfile
99
10- # Build the application
10+ # Build stage
1111FROM base AS builder
1212COPY --from=deps /app/node_modules ./node_modules
1313COPY . .
1414RUN bun run build
1515
16- # Production image
16+ # Production stage - optimized
1717FROM base AS runner
1818WORKDIR /app
1919
20- # Force cache bust
20+ # Force cache bust (keeps image fresh)
2121ARG CACHEBUST=1
2222
23- # Copy built application and ALL dependencies (not just production)
23+ # Copy built application and all dependencies
2424COPY --from=builder /app/.output ./.output
2525COPY --from=builder /app/package.json ./package.json
2626COPY --from=builder /app/node_modules ./node_modules
2727
2828# Set production environment
2929ENV NODE_ENV=production
30-
31- # Default port (can be overridden)
3230ENV PORT=3000
3331
32+ # Don't run as root
33+ USER bun
34+
3435# Expose the port
35- EXPOSE ${PORT}
36+ EXPOSE 3000
3637
3738# Start the application
3839CMD ["bun" , "run" , ".output/server/index.mjs" ]
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ export const Route = createRootRouteWithContext<MyRouterContext>()({
3232 } ) ,
3333 ] ,
3434 links : [
35+ {
36+ rel : "preload" ,
37+ href : appCss ,
38+ as : "style" ,
39+ } ,
3540 {
3641 rel : "stylesheet" ,
3742 href : appCss ,
You can’t perform that action at this time.
0 commit comments