feat: complete Ancestor quote bot with production-ready Docker support
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,18 +1,10 @@
|
||||
FROM node:18-alpine
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files first for better layer caching
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies (including dotenv)
|
||||
RUN npm install
|
||||
|
||||
# Copy application source code
|
||||
COPY . .
|
||||
|
||||
# Expose port if needed (optional, Matrix uses websocket)
|
||||
# EXPOSE 3000
|
||||
|
||||
# Run the bot (dotenv will auto-load from /app/.env or environment variables)
|
||||
CMD ["node", "index.js"]
|
||||
|
||||
Reference in New Issue
Block a user