fix build bug

This commit is contained in:
sijinhui 2024-07-24 14:51:51 +08:00
parent e2b8d56619
commit 997cec61dd
2 changed files with 5 additions and 4 deletions

View File

@ -28,10 +28,6 @@ jobs:
echo ${{ secrets.ALY_DOCKER_PASSWORD }} | docker login registry.cn-hangzhou.aliyuncs.com -u ${{ secrets.ALY_DOCKER_USERNAME }} --password-stdin
echo ${{ secrets.DOCKER_PASSWORD }} | docker login registry.gitlab.si.icu -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
echo "${{ secrets.DOCKER_ENV }}" > .env
#bash ./start.sh
#docker-compose build
#docker-compose push
#yes | docker system prune --filter "until=168h"
- name: Get current date
run: echo "DATE_TAG=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Build and push Docker image
@ -42,6 +38,9 @@ jobs:
tags: |
registry.gitlab.si.icu/sijinhui/chatgpt-next-web:latest
registry.gitlab.si.icu/sijinhui/chatgpt-next-web:${{ env.DATE_TAG }}
- name: clean build history
run: |
yes | docker system prune --filter "until=720h"
# download-repo:
# name: 下载仓库
# needs: build

View File

@ -13,6 +13,8 @@ ENV TZ=Asia/Chongqing
# 更新并安装时区工具
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV PRISMA_ENGINES_MIRROR=https://registry.npmmirror.com/-/binary/prisma
FROM base AS deps
RUN apk add --no-cache libc6-compat