Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Chore Docker Builder #93

Merged
merged 1 commit into from
Nov 13, 2023
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
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN apk add proxychains-ng
ENV PROXY_URL=""
ENV OPENAI_API_KEY=""
ENV CODE=""
ENV BASE_PATH="/"

COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./
Expand All @@ -56,7 +57,7 @@ CMD if [ -n "$PROXY_URL" ]; then \
echo "[ProxyList]" >> $conf; \
echo "$protocol $host $port" >> $conf; \
cat /etc/proxychains.conf; \
proxychains -f $conf node server.js; \
proxychains -f $conf node server.js $BASE_PATH; \
else \
node server.js; \
node server.js $BASE_PATH; \
fi
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,17 @@ docker run -d -p 3000:3000 \
ghcr.io/h0llyw00dzz/chatgpt-next-web
```

You can run with a custom base path (New)

Example :

```sh
docker run -e BASE_PATH=/web -p 3000:3000 ghcr.io/h0llyw00dzz/chatgpt-next-web
```
After running the container, your application should be accessible at `http://localhost:3000/web`.

Note : Custom base path, currently only work with Hub `ghcr.io/h0llyw00dzz/chatgpt-next-web`

If your proxy needs password, use:

```shell
Expand Down