ai-code-review-agent / Dockerfile
Padmanav's picture
fix(docker): use ENTRYPOINT for docker-entrypoint.sh; ensure newlines separate instructions
d5e635e
Raw
History Blame Contribute Delete
478 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV REPO_CLONE_DIR=/tmp/repositories
ENV APP_PORT=8000
ENV ALLOWED_ORIGINS=http://localhost:7860
EXPOSE 8000
EXPOSE 7860
COPY docker-entrypoint.sh /app/docker-entrypoint.sh
RUN chmod +x /app/docker-entrypoint.sh
ENTRYPOINT ["/app/docker-entrypoint.sh"]