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
890 changes: 890 additions & 0 deletions .cursor/rules/playwright-e2e-testing.mdc

Large diffs are not rendered by default.

134 changes: 99 additions & 35 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,47 +1,111 @@
# Include any files or directories that you don't want to be copied to your
# container here (e.g., local build artifacts, temporary files, etc.).
#
# For more help, visit the .dockerignore file reference guide at
# https://docs.docker.com/go/build-context-dockerignore/
-# Include any files or directories that you don't want to be copied to your
-# container here (e.g., local build artifacts, temporary files, etc.).
-#
-# For more help, visit the .dockerignore file reference guide at
-# https://docs.docker.com/go/build-context-dockerignore/
# Dependencies and package managers
**/node_modules
.pnpm-store
.pnpm-cache
.npm
jspm_packages/
.yarn-integrity

**/.classpath
**/.dockerignore
# Build outputs and caches
**/.next
**/build
**/dist
**/.turbo
**/.cache
.parcel-cache
.nuxt
.out
.storybook-out
**/.sst

# Environment and configuration files
**/.env
**/*.env
env.*
packages/server/.env
packages/ui/.env

# Development and tooling files
.devcontainer/
.github/
**/copilot
copilot/**
docker/
**/charts
**/secrets.dev.yaml
**/values.dev.yaml
.eslintcache

# Test files and coverage
**/*.test.*
**/*.spec.*
test/
tests/
__tests__/
coverage/
*.lcov
.nyc_output

# Documentation
*.md
LICENSE

# Editor and IDE files
**/.vscode
**/.idea
.project
.settings
.toolstarget
.vs
.classpath
*.swp
*.swo
*~

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Version control and Docker
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.next
**/.turbo
**/.cache
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/charts
**/.dockerignore
**/Dockerfile*
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules

# Logs and runtime files
*.log
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
**/build
**/dist
pids
*.pid
*.seed
*.pid.lock
.node_repl_history
*.tgz

packages/server/.env
packages/ui/.env
**/.sst
**/copilot
copilot/**
# Build tool caches
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

docker
node_modules
# Temporary folders
tmp/
temp/

LICENSE
README.md
# Other build artifacts
**/obj
**/*.*proj.user
**/*.dbmdl
**/*.jfm
3 changes: 0 additions & 3 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@
CORS_ORIGINS="*"
IFRAME_ORIGINS="*"
DOMAIN=http://localhost:4000 # The domain of the server
DEBUG_LEVEL=debug
DEBUG=billing:*
# LOG_LEVEL is optional, uncomment to enable
#LOG_LEVEL=debug
DISABLE_FLOWISE_TELEMETRY=true
NEXT_PUBLIC_DOMAIN=http://localhost:3000

# ==================================================
# DATABASE CONFIGURATION
Expand Down Expand Up @@ -96,7 +94,6 @@ LANGFUSE_RELEASE=
LANGFUSE_SECRET_KEY=your_langfuse_secret_key
LANGFUSE_PUBLIC_KEY=your_langfuse_public_key
LANGFUSE_HOST=https://cloud.langfuse.com
LANGFUSE_BASEURL=https://cloud.langfuse.com

# Feature Flags & Monitoring
FLAGSMITH_ENVIRONMENT_ID=your_flagsmith_env_id
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,13 @@ daisy
# sst
.sst

# Explicitly ignore all manifest files in the environments directory
copilot/.workspace
copilot/environments/**/manifest.yml
# Manifests to include in the repo:
!copilot/environments/addons/flowise-cluster.yml
!copilot/environments/staging/manifest.yml
copilot/environments/**/manifest.yml
!copilot/environments/prod/manifest.yml

## AnswerAI

Expand Down
58 changes: 0 additions & 58 deletions DEPLOYMENT_COPILOT.md

This file was deleted.

21 changes: 17 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

FROM --platform=linux/amd64 node:20-alpine as base

# Add metadata labels
LABEL maintainer="AnswerAI Team"
LABEL version="1.0.0"
LABEL description="AnswerAI Flowise Application"

WORKDIR /app

RUN apk add --update libc6-compat python3 make g++ bash
Expand All @@ -20,7 +25,7 @@ RUN apk add --no-cache curl

#install PNPM globaly
RUN npm install -g pnpm turbo@1
RUN pnpm config set store-dir ~/.pnpm-store
RUN pnpm config set store-dir /root/.pnpm-store

ENV PUPPETEER_SKIP_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
Expand All @@ -46,7 +51,7 @@ COPY --from=pruner /app/out/json/ .
COPY scripts/ ./scripts/

# First install the dependencies (as they change less often)
RUN --mount=type=cache,id=pnpm,target=~/.pnpm-store pnpm install
RUN --mount=type=cache,id=pnpm,target=/root/.pnpm-store pnpm install

# Copy the rest of the source files into the image.
COPY --from=pruner /app/out/full/ .
Expand All @@ -55,19 +60,27 @@ COPY --from=pruner /app/out/full/ .
RUN --mount=type=cache,target=/app/node_modules/.cache pnpm run build --filter flowise

# Prune the dev dependencies
#RUN --mount=type=cache,id=pnpm,target=~/.pnpm-store pnpm prune --prod --no-optional
#RUN --mount=type=cache,id=pnpm,target=/root/.pnpm-store pnpm prune --prod --no-optional

################################################################################

FROM base AS runner

ENV NODE_ENV=production

# Build arguments for port configuration
ARG PORT=4000
ENV PORT=$PORT

# Set default proxy configuration for reverse-proxied deployments (Render, AWS, etc.)
# Can be overridden at runtime if needed
ENV NUMBER_OF_PROXIES=1

COPY --from=build /app .

WORKDIR /app/packages/server

# Expose the port that the application listens on.
EXPOSE 4000
EXPOSE $PORT

CMD ["pnpm", "start"]
Loading
Loading