Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/workflows/fastgpt-home-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
with:
# list of Docker images to use as base name for tags
images: |
${{ secrets.DOCKER_HUB_NAME }}/fastgpt-home
ghcr.io/${{ github.repository_owner }}/fastgpt-home
registry.cn-hangzhou.aliyuncs.com/labring4docker/fastgpt-home
tags: |
${{ steps.datetime.outputs.datetime }}
Expand All @@ -41,19 +39,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_NAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Aliyun
uses: docker/login-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./projects/fastgpt/out --project-name=fastgpt-home-run
command: pages deploy ./projects/fastgpt/out --project-name=fastgpt-home

- name: Comment Preview URL
uses: FinleyGe/[email protected]
Expand Down
11 changes: 5 additions & 6 deletions projects/fastgpt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,17 @@ ENV NEXT_PUBLIC_POLICE_FILING=$NEXT_PUBLIC_POLICE_FILING
# copy packages and one project
ADD . ./


RUN sed -i "s#https://doc.fastgpt.io#https://doc.fastgpt.cn#g" $(grep -rl "https://doc.fastgpt.io" ./)
RUN sed -i "s#https://doc.fastgpt.io#https://doc.fastgpt.cn#g" $(grep -rl "https://doc.fastgpt.io" ./)
RUN sed -i "s#https://cloud.fastgpt.io#https://cloud.fastgpt.cn#g" $(grep -rl "https://cloud.fastgpt.io" ./)
RUN sed -i "s/defaultLocale = \"en\"/defaultLocale = \"zh\"/g" lib/i18n.ts
# Replace URLs in files (fix sed -i syntax for Alpine Linux)
RUN sed -i '' "s#https://doc.fastgpt.io#https://doc.fastgpt.cn#g" $(grep -rl "https://doc.fastgpt.io" ./ || true)
RUN sed -i '' "s#https://cloud.fastgpt.io#https://cloud.fastgpt.cn#g" $(grep -rl "https://cloud.fastgpt.io" ./ || true)
RUN sed -i '' "s/defaultLocale = \"en\"/defaultLocale = \"zh\"/g" lib/i18n.ts

RUN npm install
RUN npm run build

FROM fholzer/nginx-brotli:latest

LABEL org.opencontainers.image.source https://github.com/labring/fastgpt-home
LABEL org.opencontainers.image.source="https://github.com/labring/fastgpt-home"

COPY --from=builder /app/out /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
2 changes: 1 addition & 1 deletion projects/fastgpt/components/home/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Hero = ({ locale, CTALocale, stars }: { locale: any; CTALocale: any; stars
border: '1px solid rgba(179, 220, 229, 0.40)',
}}
>
<span style={{ color: '#F8A3FF' }}>20w+&nbsp;</span>
<span style={{ color: '#F8A3FF' }}>40w+&nbsp;</span>
{locale.maker}
</div>

Expand Down
Loading