Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions website/server/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ yarn-error.log*

# Build outputs
dist
dist-bundled
build
*.tsbuildinfo
.compile-cache

# Development files
.git
Expand Down
70 changes: 70 additions & 0 deletions website/server/.gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Dependencies
node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Build outputs
dist
dist-bundled
build
*.tsbuildinfo
.compile-cache

# Development files
.git
.gitignore
.env
.env.*
.npmrc
.yarnrc
.editorconfig
README.md
CHANGELOG.md
LICENSE
*.md

# IDE files
.vscode
.idea
*.swp
*.swo
.DS_Store
Thumbs.db

# Test files
__tests__
test
tests
coverage
.nyc_output

# Docker files (keep Dockerfile - needed for Cloud Build)
.dockerignore

# Temporary files
tmp
temp
*.tmp
*.temp

# Log files
logs
*.log

# Cache directories
.npm
.eslintcache

# Cloud platform specific
.gcloudignore
cloudbuild.yaml
cloudbuild.yml

# TypeScript source maps
*.map

# Misc
.github
.circleci
.husky
1 change: 1 addition & 0 deletions website/server/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist
dist-bundled
node_modules
.compile-cache
6 changes: 4 additions & 2 deletions website/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ WORKDIR /app
# Copy bundled server and WASM files
COPY --from=builder /app/dist-bundled ./dist-bundled

# Copy external dependencies (tinypool and tiktoken with its WASM files)
# Copy external dependencies (cannot be bundled due to runtime requirements)
# - tinypool: spawns worker threads using file paths
# - tiktoken: loads WASM files dynamically at runtime
COPY --from=builder /app/node_modules/tinypool ./node_modules/tinypool
COPY --from=builder /app/node_modules/tiktoken ./node_modules/tiktoken

Expand All @@ -41,7 +43,7 @@ COPY --from=builder /app/warmup.mjs ./warmup.mjs
# NODE_COMPILE_CACHE enables V8 compile cache to reduce cold start latency
ENV NODE_ENV=production \
PORT=8080 \
REPOMIX_WORKER_PATH=/app/dist-bundled/server.mjs \
REPOMIX_WORKER_PATH=/app/dist-bundled/worker.mjs \
REPOMIX_WASM_DIR=/app/dist-bundled/wasm \
NODE_COMPILE_CACHE=/app/.compile-cache

Expand Down
Loading
Loading