cipher-md-api / Dockerfile
sh4lu-z
Restructure service modules and enhance welcome image generator
6d0ca84
Raw History Blame Contribute Delete
811 Bytes
FROM python:3.9-slim
# Install system dependencies including FFmpeg and libs for OpenCV & Skia
RUN apt-get update && apt-get install -y \
curl \
build-essential \
ffmpeg \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js (18.x)
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs
# Set up working directory
WORKDIR /app
# Copy requirement files first for better caching
COPY package.json ./
COPY requirements.txt ./
# Install dependencies
RUN npm install
RUN pip install --no-cache-dir -r requirements.txt
# Copy all the API subfolders and proxy files
COPY . .
# Set permissions for start script
RUN chmod +x start.sh
# Expose the default Hugging Face port
EXPOSE 7860
# Start all services
CMD ["./start.sh"]