mirror of
https://github.com/yuezk/chatgpt-mirror
synced 2025-09-27 02:55:55 +08:00
Build docker image
This commit is contained in:
6
.dockerignore
Normal file
6
.dockerignore
Normal file
@@ -0,0 +1,6 @@
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
.github
|
||||
.vscode
|
||||
node_modules
|
||||
dist
|
@@ -20,6 +20,7 @@ ENV TZ="Asia/Shanghai"
|
||||
WORKDIR /app
|
||||
COPY package.json .
|
||||
COPY public /app/public
|
||||
COPY config /app/config
|
||||
COPY --from=0 /app/node_modules /app/node_modules
|
||||
COPY --from=0 /app/dist /app/dist
|
||||
|
||||
|
17
README.md
17
README.md
@@ -35,6 +35,23 @@ Visit http://localhost:3000
|
||||
|
||||
## Running the app with Docker
|
||||
|
||||
### Build the image
|
||||
|
||||
```bash
|
||||
$ docker build -t chatgpt-mirror .
|
||||
```
|
||||
|
||||
### Run the container
|
||||
|
||||
```bash
|
||||
$ docker run -d -p 3000:3000 --env-file .env chatgpt-mirror
|
||||
```
|
||||
|
||||
### Run with the config file
|
||||
|
||||
```bash
|
||||
$ docker run -d -p 3000:3000 --env-file .env -v $(pwd)/config/app.config.json:/app/config/app.config.json chatgpt-mirror
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
|
Reference in New Issue
Block a user