Spaces:
Sleeping
Sleeping
FROM node:18 | |
# Set working directory inside container | |
WORKDIR /app | |
# Clone the repository | |
RUN git clone https://github.com/vijaysagi12/myinzackBot.git . | |
ENV DISABLE_ESLINT_PLUGIN=true | |
ENV ESLINT_NO_CACHE=true | |
# Install dependencies | |
RUN npm install && npm run build | |
# Expose the React app's default port | |
RUN npm install -g serve | |
# Expose Hugging Face port | |
EXPOSE 7860 | |
# Start the static server on port 7860 | |
CMD ["serve", "-s", "build", "-l", "7860"] | |