mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-14 14:31:00 +00:00
refactor: clean up Dockerfile and .gitignore by removing unused entries
This commit is contained in:
@@ -52,11 +52,3 @@ src/langbot/web/
|
|||||||
/dist
|
/dist
|
||||||
/build
|
/build
|
||||||
*.egg-info
|
*.egg-info
|
||||||
|
|
||||||
# Docker 部署产生的本地文件
|
|
||||||
docker/data/
|
|
||||||
docker/docker-compose.override.yaml
|
|
||||||
|
|
||||||
# 备份目录
|
|
||||||
LangBot_backup_*/
|
|
||||||
*.bak
|
|
||||||
|
|||||||
+2
-6
@@ -10,18 +10,14 @@ FROM python:3.12.7-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Use Chinese mirror for faster and more reliable package downloads
|
|
||||||
RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources 2>/dev/null || \
|
|
||||||
sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list 2>/dev/null || true
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
COPY --from=node /app/web/out ./web/out
|
COPY --from=node /app/web/out ./web/out
|
||||||
|
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install gcc -y \
|
&& apt install gcc -y \
|
||||||
&& python -m pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple uv \
|
&& python -m pip install --no-cache-dir uv \
|
||||||
&& uv sync --index-url https://pypi.tuna.tsinghua.edu.cn/simple \
|
&& uv sync \
|
||||||
&& touch /.dockerenv
|
&& touch /.dockerenv
|
||||||
|
|
||||||
CMD [ "uv", "run", "--no-sync", "main.py" ]
|
CMD [ "uv", "run", "--no-sync", "main.py" ]
|
||||||
Reference in New Issue
Block a user