From 5f67ab31c3d441c892b993248535afb16ffaeace Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 25 May 2023 19:32:10 +0100 Subject: [PATCH 1/3] fix docker running locally --- Dockerfile | 1 + README.md | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/Dockerfile b/Dockerfile index 315b4739..a8a4c69a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ # Run image # docker run -d -p 3000:3000 flowise FROM node:18-alpine +RUN apk add --update libc6-compat WORKDIR /usr/src/packages diff --git a/README.md b/README.md index 545b36ba..323a8b33 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,29 @@ Drag & drop UI to build your customized LLM flow using [LangchainJS](https://git ## 🐳 Docker +### Docker Compose + 1. Go to `docker` folder at the root of the project 2. Create `.env` file and specify the `PORT` (refer to `.env.example`) 3. `docker-compose up -d` 4. Open [http://localhost:3000](http://localhost:3000) 5. You can bring the containers down by `docker-compose stop` +### Docker Image + +1. Build the image locally: + ```bash + docker build --no-cache -t flowise . + ``` +2. Run image: + ```bash + docker run -d --name flowise -p 3000:3000 flowise + ``` +3. Stop image: + ```bash + docker stop flowise + ``` + ## 👨‍💻 Developers Flowise has 3 different modules in a single mono repository. From 461a1057dfeeef476d914c887d76f864013dab61 Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 25 May 2023 19:44:40 +0100 Subject: [PATCH 2/3] add gitattributes --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..c75e2532 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Set the default behavior, in case people don't have core.autocrlf set. +* text=auto + +# Declare files that will always have LF line endings on checkout. +*.cmd text eol=lf From ffdd9691e6c938542485a229cc2e26f601963863 Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 25 May 2023 19:57:55 +0100 Subject: [PATCH 3/3] remove gitattributes --- .gitattributes | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index c75e2532..00000000 --- a/.gitattributes +++ /dev/null @@ -1,5 +0,0 @@ -# Set the default behavior, in case people don't have core.autocrlf set. -* text=auto - -# Declare files that will always have LF line endings on checkout. -*.cmd text eol=lf