Add Dockerfile and gitignore

This commit is contained in:
Kaustabh Ganguly
2025-03-26 22:23:47 +05:30
parent f426e87e12
commit 570a1eb436
2 changed files with 79 additions and 0 deletions

29
Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
FROM node:18-alpine
WORKDIR /app
# Install dependencies for sharp
RUN apk add --no-cache \
g++ \
make \
python3
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install
# Copy source code
COPY . .
# Build TypeScript code
RUN npm run build
# Default environment variables
ENV NODE_ENV=production
# The API key should be passed at runtime
# ENV OPENROUTER_API_KEY=your-api-key-here
# ENV OPENROUTER_DEFAULT_MODEL=your-default-model
# Run the server
CMD ["node", "dist/index.js"]