File size: 488 Bytes
179e261
 
4f7aaff
 
 
 
179e261
 
 
 
 
 
 
 
4f7aaff
 
 
 
179e261
831420c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use Node.js alpine for lightweight static file serving
FROM node:alpine

# Set environment variable for Hugging Face Spaces URL
ENV EDITOR_BASE_URL="https://Aditya025-Plant.hf.space"

# Install serve globally
RUN npm install -g serve

# Copy the built static files from dist folder
COPY dist/ /app/

# Set working directory
WORKDIR /app

# Expose port 7860 for Hugging Face Spaces
EXPOSE 7860

# Start serve to host static files on all interfaces
CMD ["serve", "-s", ".", "-l", "7860"]