nse-bot-backend / Dockerfile
ash001's picture
Deploy from GitHub Actions to nse-bot-backend
789e5eb verified
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PIP_NO_CACHE_DIR=1
ENV PORT=7860
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY . .
RUN chmod +x /app/start_space.sh
CMD ["bash", "/app/start_space.sh"]