GithubHelp home page GithubHelp logo

limour-dev / chatgpt-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anse-app/chatgpt-demo

4.0 4.0 0.0 963 KB

A demo repo based on OpenAI API (gpt-3.5-turbo)

Home Page: https://chatgpt.ddiu.me

License: MIT License

Shell 1.26% JavaScript 3.21% TypeScript 69.52% CSS 1.18% Astro 24.83%

chatgpt-demo's People

Stargazers

 avatar  avatar  avatar  avatar

chatgpt-demo's Issues

通过Docker进行部署

安装docker

nano /etc/docker/daemon.json 添加的内容

{
    "registry-mirrors":[
                        "https://hub-mirror.c.163.com/",
                        "https://docker.mirrors.ustc.edu.cn/"
                        ]
}

安装chatgpt-demo

nano Dockerfile 添加的内容

FROM node:alpine
COPY chatgpt-demo /app
WORKDIR /app
RUN npm config set registry https://registry.npmmirror.com \
 && npm install
ENV PORT=3000
CMD ["npm", "run", "dev", "--", "--port", "3000", "--host", "0.0.0.0"]

nano docker-compose.yml 添加的内容

version: '3.3'
services:
    chatgpt:
        container_name: chatgpt
        restart: always
        image: limour/chatgpt
        ports:
            - '6903:3000'
        volumes:
            - ./.env:/app/.env

容器内安装git

sudo docker-compose exec chatgpt sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
sudo docker-compose exec chatgpt apk update
sudo docker-compose exec chatgpt apk add git

容器内更新chatgpt-demo

sudo docker-compose exec chatgpt git pull 
sudo docker-compose exec chatgpt npm install

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.