manga-nanobanana / Dockerfile
Akhil-Theerthala's picture
Upload Dockerfile
632c69f verified
FROM node:20-slim
WORKDIR /app
# Copy only package.json (not package-lock.json to avoid sync issues)
COPY package.json ./
# Install dependencies fresh
RUN npm install
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Install serve globally
RUN npm install -g serve
# Expose port 7860 (required for Hugging Face Spaces)
EXPOSE 7860
# Start the application
CMD ["serve", "-s", "dist", "-p", "7860"]