diff --git a/Dockerfile b/Dockerfile index 705ffa2f5..315b4739f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # docker build --no-cache -t flowise . # Run image # docker run -d -p 3000:3000 flowise -FROM node:16 +FROM node:18-alpine WORKDIR /usr/src/packages diff --git a/README.md b/README.md index 84ca109ea..65efcd25a 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,10 @@ Drag & drop UI to build your customized LLM flow using [LangchainJS](https://git ## 🐳 Docker 1. Go to `docker` folder at the root of the project -2. `docker-compose up -d` -3. Open [http://localhost:3000](http://localhost:3000) -4. You can bring the containers down by `docker-compose stop` +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` ## 👨‍💻 Developers diff --git a/docker/.env.example b/docker/.env.example new file mode 100644 index 000000000..c0c68b1ca --- /dev/null +++ b/docker/.env.example @@ -0,0 +1 @@ +PORT=3000 \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile index b4dedaece..653756728 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,8 +1,9 @@ -FROM node:14.20.0-alpine +FROM node:18-alpine USER root RUN apk add --no-cache git +RUN apk add --no-cache python3 py3-pip # You can install a specific version like: flowise@1.0.0 RUN npm install -g flowise