Merge pull request #8 from sbtobb/feature-docker-config
Feature add docker config
This commit is contained in:
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
node_modules
|
||||||
|
npm-debug.log
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
node_modules
|
node_modules
|
||||||
.env
|
.env
|
||||||
log.txt
|
log.txt
|
||||||
|
.DS_Store
|
||||||
|
pnpm-lock.yaml
|
||||||
|
|||||||
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
claude-code-reverse:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "3456:3456"
|
||||||
|
environment:
|
||||||
|
- ENABLE_ROUTER=${ENABLE_ROUTER}
|
||||||
|
- OPENAI_API_KEY=${OPENAI_API_KEY}
|
||||||
|
- OPENAI_BASE_URL=${OPENAI_BASE_URL}
|
||||||
|
- OPENAI_MODEL=${OPENAI_MODEL}
|
||||||
|
restart: unless-stopped
|
||||||
12
dockerfile
Normal file
12
dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM node:20-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm i
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
EXPOSE 3456
|
||||||
|
|
||||||
|
CMD ["node", "index.mjs"]
|
||||||
@@ -323,7 +323,7 @@ async function initializeClaudeConfig() {
|
|||||||
async function run() {
|
async function run() {
|
||||||
await initializeClaudeConfig();
|
await initializeClaudeConfig();
|
||||||
|
|
||||||
app.listen(port, "127.0.0.1", () => {
|
app.listen(port, "0.0.0.0", () => {
|
||||||
console.log(`Example app listening on port ${port}`);
|
console.log(`Example app listening on port ${port}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user