Skip to content

Commit

Permalink
Update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-sudre committed Oct 29, 2024
1 parent 334410b commit ac5d21a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN npm install -g [email protected]
COPY package.json pnpm-lock.yaml* ./

# Install dependencies
RUN pnpm install
RUN pnpm install --frozen-lockfile

# Copy the rest of the application code
COPY . .
Expand All @@ -24,6 +24,8 @@ RUN chmod +x bindings.sh

# Expose the port the app runs on (adjust if you specified a different port)
EXPOSE 3000
# Ensure the app listens on all network interfaces
ENV HOST 0.0.0.0

# Start the application
CMD ["pnpm", "run", "start"]
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ services:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000'
- '31500:3000'
environment:
- NODE_ENV=production
- HOST=0.0.0.0
- OLLAMA_API_BASE_URL=http://host.docker.internal:11343
# Add any other environment variables your app needs
# - OPENAI_API_KEY=${OPENAI_API_KEY}
# - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
Expand Down

0 comments on commit ac5d21a

Please sign in to comment.