Spaces:
Running
Running
File size: 1,109 Bytes
67e39e6 | 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | # =============================================================================
# SignFlow - Development Dockerfile
# =============================================================================
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1-mesa-glx \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
libgomp1 \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js for frontend dev server
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY server/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Install Node dependencies
COPY package.json ./
RUN npm install
# Copy config files
COPY vite.config.ts tsconfig.json tsconfig.node.json index.html ./
# Start script
COPY <<'EOF' /start-dev.sh
#!/bin/bash
cd /app/server && python app.py &
cd /app && npm run dev -- --host 0.0.0.0
EOF
RUN chmod +x /start-dev.sh
CMD ["/start-dev.sh"]
|