NexMateAI / Dockerfile
FrederickSundeep's picture
commit initial update 28082025-004
31f7326
raw
history blame contribute delete
473 Bytes
# Use official Node image
FROM node:18
# Set working directory
WORKDIR /app
# Copy package.json and install deps
COPY package.json package-lock.json* ./
RUN npm install --legacy-peer-deps
# Copy all files
COPY . .
# Build React app
RUN npm run build
ENV REACT_APP_HF_TOKEN=${HF_TOKEN}
# Install a simple static server
RUN npm install -g serve
# Expose port 7860 (HF default)
EXPOSE 7860
# Start the React build with serve
CMD ["serve", "-s", "build", "-l", "7860"]