debug-log
feat: Insight Repository โ€” GitLab ์ดˆ๊ธฐํ™” + HF ์ž๋™ ๋ฐฐํฌ
501bc8c
Raw History Blame Contribute Delete
663 Bytes
FROM python:3.10
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Create user
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PYTHONUNBUFFERED=1
WORKDIR $HOME/app
# Copy application code
COPY --chown=user . .
# Expose port for HF Spaces health check
EXPOSE 7860
# Make script executable
RUN chmod +x run_app.sh
# Run startup script (FastAPI + optional Slack bot)
CMD ["/bin/bash", "run_app.sh"]