DigitalLawyer / Dockerfile
vijayksagi's picture
Upload Dockerfile
d2143aa verified
raw
history blame contribute delete
480 Bytes
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"]