stagingfrontend / Dockerfile
Antaram's picture
Upload 49 files
6234767 verified
raw
history blame contribute delete
366 Bytes
FROM node:18-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy all files
COPY . .
# Build the app
RUN npm run build
# Expose port 7860 (Hugging Face Spaces default)
EXPOSE 7860
# Start the preview server
CMD ["npm", "run", "preview", "--", "--port", "7860", "--host", "0.0.0.0"]