Skip to content

Commit f16d3df

Browse files
authored
Merge pull request #606 from ConardLi/dev
1.6.1
2 parents a456b47 + 2327348 commit f16d3df

64 files changed

Lines changed: 5457 additions & 1219 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ README.zh-CN.md
1111
.env.production.local
1212
/test
1313
/local-db
14-
/video
14+
/video
15+
/prisma/*.sqlite
16+
/prisma/*.sqlite-*

Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,19 @@ COPY --from=builder /app/node_modules ./node_modules
6767
COPY --from=builder /app/.next ./.next
6868
COPY --from=builder /app/public ./public
6969
COPY --from=builder /app/electron ./electron
70-
COPY --from=builder /app/prisma ./prisma
70+
71+
# 复制 prisma 到模板目录(用于自动初始化)
72+
COPY --from=builder /app/prisma /app/prisma-template
73+
74+
# 复制并设置 entrypoint 脚本
75+
COPY docker-entrypoint.sh /usr/local/bin/
76+
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
7177

7278
# 设置生产环境
7379
ENV NODE_ENV=production
7480

7581
EXPOSE 1717
82+
83+
# 使用 entrypoint 脚本
84+
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
7685
CMD ["pnpm", "start"]

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
**A powerful tool for creating fine-tuning datasets for Large Language Models**
1818

19-
[简体中文](./README.zh-CN.md) | [English](./README.md)
19+
[简体中文](./README.zh-CN.md) | [English](./README.md) | [Türkçe](./README.tr.md)
2020

2121
[Features](#features)[Quick Start](#local-run)[Documentation](https://docs.easy-dataset.com/ed/en)[Contributing](#contributing)[License](#license)
2222

@@ -42,6 +42,7 @@ With Easy Dataset, you can transform domain knowledge into structured datasets,
4242
- **Flexible Editing**: Edit questions, answers, and datasets at any stage of the process
4343
- **Multiple Export Formats**: Export datasets in various formats (Alpaca, ShareGPT, multilingual-thinking) and file types (JSON, JSONL)
4444
- **Wide Model Support**: Compatible with all LLM APIs that follow the OpenAI format
45+
- **Multi-Language Support**: Complete Turkish language support for UI and all AI operations 🇹🇷
4546
- **User-Friendly Interface**: Intuitive UI designed for both technical and non-technical users
4647
- **Custom System Prompts**: Add custom system prompts to guide model responses
4748

@@ -142,13 +143,13 @@ services:
142143
- '1717:1717'
143144
volumes:
144145
- ./local-db:/app/local-db
145-
# - ./prisma:/app/prisma If mounting is required, please manually initialize the database file first.
146+
- ./prisma:/app/prisma
146147
restart: unless-stopped
147148
```
148149
149-
> **Note:** Replace `{YOUR_LOCAL_DB_PATH}` and `{LOCAL_PRISMA_PATH}` with the actual paths where you want to store the local database. It is recommended to use the `local-db` and `prisma` folders in the current code repository directory to maintain consistency with the database paths when starting via NPM.
150+
> **Note:** It is recommended to use the `local-db` and `prisma` folders in the current code repository directory as mount paths to maintain consistency with the database paths when starting via NPM.
150151

151-
> **Note:** If you need to mount the database file (PRISMA), you need to run `npm run db:push` in advance to initialize the database file.
152+
> **Note:** The database file will be automatically initialized on first startup, no need to manually run `npm run db:push`.
152153

153154
3. Start with docker-compose:
154155

@@ -180,13 +181,15 @@ docker build -t easy-dataset .
180181
```bash
181182
docker run -d \
182183
-p 1717:1717 \
183-
-v {YOUR_LOCAL_DB_PATH}:/app/local-db \
184-
-v {LOCAL_PRISMA_PATH}:/app/prisma \
184+
-v ./local-db:/app/local-db \
185+
-v ./prisma:/app/prisma \
185186
--name easy-dataset \
186187
easy-dataset
187188
```
188189

189-
> **Note:** Replace `{YOUR_LOCAL_DB_PATH}` and `{LOCAL_PRISMA_PATH}` with the actual paths where you want to store the local database. It is recommended to use the `local-db` and `prisma` folders in the current code repository directory to maintain consistency with the database paths when starting via NPM.
190+
> **Note:** It is recommended to use the `local-db` and `prisma` folders in the current code repository directory as mount paths to maintain consistency with the database paths when starting via NPM.
191+
192+
> **Note:** The database file will be automatically initialized on first startup, no need to manually run `npm run db:push`.
190193

191194
4. Open a browser and visit `http://localhost:1717`
192195

0 commit comments

Comments
 (0)