instagram / Dockerfile
YOGESHJIO5770's picture
Add Space configuration
5b89d2a
raw
history blame contribute delete
469 Bytes
# Use the official Node.js image
FROM node:18
# Set working directory
WORKDIR /app
# Install FFmpeg for video processing
RUN apt-get update && apt-get install -y ffmpeg
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install
# Copy the rest of the application
COPY . .
# Set environment variables (Hugging Face will provide these)
ENV PORT=7860
# Expose the port
EXPOSE 7860
# Command to run the application
CMD ["node", "server.js"]