Redis MCP Server
by farhankaz
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Stage 1: Build the application
FROM node:20 AS builder
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package.json tsconfig.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application
COPY . .
# Build the application
RUN npm run build
# Stage 2: Run the application
FROM node:20-alpine
# Set the working directory
WORKDIR /app
# Copy the build output and package files from the builder stage
COPY --from=builder /app/dist /app/dist
COPY --from=builder /app/package.json /app/package-lock.json /app/node_modules /app/
# Set the entrypoint
ENTRYPOINT ["node", "dist/index.js"]