pvanand's picture
Update Dockerfile
94cf751 verified
raw
history blame contribute delete
485 Bytes
# Base image
FROM python:3.8-slim as builder
# Install Node.js
RUN apt-get update && apt-get install -y curl
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get install -y nodejs
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy server files
COPY . .
# Expose port 7860 for Hugging Face compatibility
EXPOSE 7860
# Run the Node.js server
CMD ["node", "server.js"]