manga-nanobanana / Dockerfile
Akhil-Theerthala's picture
Upload 19 files
f44cf45 verified
raw
history blame
429 Bytes
# Use Node.js runtime
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Install serve to serve the built app
RUN npm install -g serve
# Expose port 7860 (required for Hugging Face Spaces)
EXPOSE 7860
# Start the application
CMD ["serve", "-s", "dist", "-p", "7860"]