Spaces:
Sleeping
Sleeping
File size: 485 Bytes
d54ffbe cb781d4 6b0966e cb781d4 408cdab d54ffbe 408cdab d54ffbe 408cdab d54ffbe 408cdab d54ffbe 408cdab 94cf751 a3adc78 408cdab d54ffbe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # 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"] |