Compare commits

...

18 Commits

Author SHA1 Message Date
semantic-release-bot f008c05f3a 🔖 chore(release): v0.86.0-beta.6 [skip ci]
## [Version 0.86.0-beta.6](https://github.com/lobehub/lobe-chat/compare/v0.86.0-beta.5...v0.86.0-beta.6)
<sup>Released on **2023-10-10**</sup>

####  Features

- **misc**: Try with docker ci.

#### 💄 Styles

- **misc**: Add new components, modify display properties, and update settings feature, Replace 100vh with 100% to fix mobile scroll problem.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Try with docker ci ([0e1ecf7](https://github.com/lobehub/lobe-chat/commit/0e1ecf7))

#### Styles

* **misc**: Add new components, modify display properties, and update settings feature ([87a4a46](https://github.com/lobehub/lobe-chat/commit/87a4a46))
* **misc**: Replace 100vh with 100% to fix mobile scroll problem ([2ef3c94](https://github.com/lobehub/lobe-chat/commit/2ef3c94))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2023-10-10 18:41:21 +00:00
arvinxx 0e1ecf7951 feat: try with docker ci 2023-10-11 02:38:54 +08:00
arvinxx bf4e324ef4 🔀 chore: merge master 2023-10-11 02:36:52 +08:00
semantic-release-bot a7104f1e4c 🔖 chore(release): v0.86.0-beta.5 [skip ci]
## [Version&nbsp;0.86.0-beta.5](https://github.com/lobehub/lobe-chat/compare/v0.86.0-beta.4...v0.86.0-beta.5)
<sup>Released on **2023-10-10**</sup>

####  Features

- **misc**: Add default ACCESS_CODE=lobe66.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Add default ACCESS_CODE=lobe66 ([3ebec4a](https://github.com/lobehub/lobe-chat/commit/3ebec4a))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2023-10-10 16:53:08 +00:00
arvinxx 3ebec4ab28 feat: add default ACCESS_CODE=lobe66 2023-10-11 00:51:06 +08:00
semantic-release-bot 3aa42688d5 🔖 chore(release): v0.86.0-beta.4 [skip ci]
## [Version&nbsp;0.86.0-beta.4](https://github.com/lobehub/lobe-chat/compare/v0.86.0-beta.3...v0.86.0-beta.4)
<sup>Released on **2023-10-10**</sup>

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2023-10-10 16:35:31 +00:00
arvinxx 66761ad046 🐛 revert: "🐛 feat: try with new docker ci"
This reverts commit 728172e056.
2023-10-11 00:33:37 +08:00
semantic-release-bot 297e00b6da 🔖 chore(release): v0.86.0-beta.3 [skip ci]
## [Version&nbsp;0.86.0-beta.3](https://github.com/lobehub/lobe-chat/compare/v0.86.0-beta.2...v0.86.0-beta.3)
<sup>Released on **2023-10-10**</sup>

####  Features

- **misc**: Try with new docker ci.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Try with new docker ci ([728172e](https://github.com/lobehub/lobe-chat/commit/728172e))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2023-10-10 16:02:56 +00:00
arvinxx 728172e056 🔧 feat: try with new docker ci 2023-10-11 00:01:24 +08:00
semantic-release-bot cb79480582 🔖 chore(release): v0.86.0-beta.2 [skip ci]
## [Version&nbsp;0.86.0-beta.2](https://github.com/lobehub/lobe-chat/compare/v0.86.0-beta.1...v0.86.0-beta.2)
<sup>Released on **2023-10-10**</sup>

#### 🐛 Bug Fixes

- **misc**: Add apikey form when there is no default api key in env, Fix mobile safearea (fix.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Add apikey form when there is no default api key in env, closes [#290](https://github.com/lobehub/lobe-chat/issues/290) ([2c907e9](https://github.com/lobehub/lobe-chat/commit/2c907e9))
* **misc**: Fix mobile safearea (fix, closes [#211](https://github.com/lobehub/lobe-chat/issues/211) ([68775b8](https://github.com/lobehub/lobe-chat/commit/68775b8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2023-10-10 15:22:34 +00:00
arvinxx 00df2c62fe Merge branch 'main' into beta
# Conflicts:
#	CHANGELOG.md
#	package.json
2023-10-10 23:20:58 +08:00
semantic-release-bot c275389de9 🔖 chore(release): v0.86.0-beta.1 [skip ci]
## [Version&nbsp;0.86.0-beta.1](https://github.com/lobehub/lobe-chat/compare/v0.85.0...v0.86.0-beta.1)
<sup>Released on **2023-10-10**</sup>

####  Features

- **misc**: Dockerize lobe-chat.

#### 🐛 Bug Fixes

- **misc**: Use bun to improve speed.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Dockerize lobe-chat ([1b750f8](https://github.com/lobehub/lobe-chat/commit/1b750f8))

#### What's fixed

* **misc**: Use bun to improve speed ([8db2a3c](https://github.com/lobehub/lobe-chat/commit/8db2a3c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2023-10-10 14:31:13 +00:00
arvinxx 7f1df522d7 🔀 chore: merge main 2023-10-10 22:29:00 +08:00
semantic-release-bot 59ca1d0611 🔖 chore(release): v0.84.0-beta.2 [skip ci]
## [Version&nbsp;0.84.0-beta.2](https://github.com/lobehub/lobe-chat/compare/v0.84.0-beta.1...v0.84.0-beta.2)
<sup>Released on **2023-10-09**</sup>

#### 🐛 Bug Fixes

- **misc**: Use bun to improve speed.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

* **misc**: Use bun to improve speed ([8db2a3c](https://github.com/lobehub/lobe-chat/commit/8db2a3c))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2023-10-09 15:39:10 +00:00
arvinxx 8db2a3c069 fix: use bun to improve speed 2023-10-09 23:37:40 +08:00
semantic-release-bot 148347f60f 🔖 chore(release): v0.84.0-beta.1 [skip ci]
## [Version&nbsp;0.84.0-beta.1](https://github.com/lobehub/lobe-chat/compare/v0.83.9...v0.84.0-beta.1)
<sup>Released on **2023-10-09**</sup>

####  Features

- **misc**: Dockerize lobe-chat.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Dockerize lobe-chat ([1b750f8](https://github.com/lobehub/lobe-chat/commit/1b750f8))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
2023-10-09 15:26:39 +00:00
arvinxx 1b750f8466 feat: dockerize lobe-chat 2023-10-09 23:24:35 +08:00
arvinxx 4cce8401d3 🚧 wip: test for the docker release 2023-10-09 23:23:53 +08:00
8 changed files with 161 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
.next
.git
scripts
docs
.github
*.md
+45
View File
@@ -0,0 +1,45 @@
name: Publish Docker image
on:
workflow_dispatch:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: lobehub/lobe-chat
tags: |
type=raw,value=latest
type=ref,event=tag
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
+3
View File
@@ -3,6 +3,7 @@ on:
push:
branches:
- main
- beta
jobs:
release:
@@ -28,3 +29,5 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# DOCKER_REGISTRY_PASSWORD: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
# DOCKER_REGISTRY_USER: ${{ secrets.DOCKER_REGISTRY_USER }}
+14 -1
View File
@@ -1 +1,14 @@
module.exports = require('@lobehub/lint').semanticRelease;
const release = require('@lobehub/lint').semanticRelease;
module.exports = {
...release,
plugins: [
...release.plugins,
// [
// '@codedependant/semantic-release-docker',
// {
// dockerImage: 'lobe-chat',
// },
// ],
],
};
+34
View File
@@ -2,6 +2,40 @@
# Changelog
## [Version 0.86.0-beta.6](https://github.com/lobehub/lobe-chat/compare/v0.86.0-beta.5...v0.86.0-beta.6)
<sup>Released on **2023-10-10**</sup>
#### ✨ Features
- **misc**: Try with docker ci.
#### 💄 Styles
- **misc**: Add new components, modify display properties, and update settings feature, Replace 100vh with 100% to fix mobile scroll problem.
<br/>
<details>
<summary><kbd>Improvements and Fixes</kbd></summary>
#### What's improved
- **misc**: Try with docker ci ([0e1ecf7](https://github.com/lobehub/lobe-chat/commit/0e1ecf7))
#### Styles
- **misc**: Add new components, modify display properties, and update settings feature ([87a4a46](https://github.com/lobehub/lobe-chat/commit/87a4a46))
- **misc**: Replace 100vh with 100% to fix mobile scroll problem ([2ef3c94](https://github.com/lobehub/lobe-chat/commit/2ef3c94))
</details>
<div align="right">
[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
</div>
### [Version 0.85.3](https://github.com/lobehub/lobe-chat/compare/v0.85.2...v0.85.3)
<sup>Released on **2023-10-10**</sup>
+49
View File
@@ -0,0 +1,49 @@
FROM node:20-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
## Install dependencies only when needed
FROM base AS builder
WORKDIR /app
COPY package.json ./
RUN pnpm i -g bun
# If you want to build docker in China
#RUN npm config set registry https://registry.npmmirror.com/
RUN bun i
COPY . .
RUN pnpm run build:docker # run build standalone for docker version
## Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app
ENV NODE_ENV production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/public ./public
# Set the correct permission for prerender cache
RUN mkdir .next
RUN chown nextjs:nodejs .next
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
USER nextjs
EXPOSE 3000
# set hostname to localhost
ENV HOSTNAME "0.0.0.0"
ENV ACCESS_CODE "lobe66"
CMD ["node", "server.js"]
+3
View File
@@ -2,6 +2,7 @@ import analyzer from '@next/bundle-analyzer';
import nextPWA from 'next-pwa';
const isProd = process.env.NODE_ENV === 'production';
const buildWithDocker = process.env.DOCKER === 'true';
const withBundleAnalyzer = analyzer({
enabled: process.env.ANALYZE === 'true',
@@ -31,6 +32,8 @@ const nextConfig = {
AGENTS_INDEX_URL: process.env.AGENTS_INDEX_URL,
PLUGINS_INDEX_URL: process.env.PLUGINS_INDEX_URL,
},
output: buildWithDocker ? 'standalone' : undefined,
};
export default isProd ? withBundleAnalyzer(withPWA(nextConfig)) : nextConfig;
+3 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@lobehub/chat",
"version": "0.85.3",
"version": "0.86.0-beta.6",
"description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
"keywords": [
"chatbot",
@@ -25,6 +25,7 @@
"scripts": {
"build": "next build",
"build:analyze": "ANALYZE=true next build",
"build:docker": "DOCKER=true next build",
"dev": "next dev -p 3010",
"i18n": "npm run i18n:workflow && lobe-i18n",
"i18n:workflow": "ts-node --project ./tsconfig.json scripts/i18nWorkflow/index.ts",
@@ -120,6 +121,7 @@
"zustand-utils": "^1"
},
"devDependencies": {
"@codedependant/semantic-release-docker": "^4",
"@commitlint/cli": "^17",
"@lobehub/i18n-cli": "latest",
"@lobehub/lint": "latest",