github-readme-stats / Dockerfile
unmodeled-tyler's picture
debug dockerfile
afaf88a verified
FROM node:22-slim
# Set working directory
WORKDIR /app
# Copy package files
COPY package.json package-lock.json ./
# Install dependencies (skip prepare script which requires husky)
RUN npm ci --omit=dev --ignore-scripts
# Copy all application files
COPY . .
# Expose port 7860 for Hugging Face Spaces
EXPOSE 7860
# Set environment to production
ENV NODE_ENV=production
# Start the server
CMD ["node", "server.js"]