forked from waylaidwanderer/node-chatgpt-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker): fix host binding in container (waylaidwanderer#399)
Use prebuild image from ghcr and match working directory in dockerfile
- Loading branch information
1 parent
dbef81d
commit 74ddbdf
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
FROM node:16-alpine | ||
|
||
ENV API_HOST=0.0.0.0 | ||
WORKDIR /app | ||
COPY . . | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
version: '3' | ||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile | ||
# build: | ||
# context: . | ||
# dockerfile: ./Dockerfile | ||
image: ghcr.io/waylaidwanderer/node-chatgpt-api:latest | ||
restart: unless-stopped | ||
environment: | ||
- OPENAI_API_KEY=${OPENAI_API_KEY} | ||
volumes: | ||
- ./settings.js:/var/chatgpt-api/settings.js:cached | ||
- ./settings.js:/app/settings.js:cached | ||
ports: | ||
- '${APP_PORT:-3000}:3000' |