vibe-link-server / Dockerfile
Lcmind
fix: switch from test_app to real app.main:app
b90dbda
raw
history blame contribute delete
812 Bytes
# VIBE_LINK Backend - Simplified for HF Spaces
FROM python:3.11-slim
# Create user first
RUN useradd -m -u 1000 user
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
chromium \
chromium-driver \
fonts-liberation \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Copy and install requirements
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app
COPY --chown=user . /app
# Switch to user
USER user
# Set environment
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
# Run app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]