Spaces:
Sleeping
Sleeping
File size: 478 Bytes
0b33efa 754d865 0b33efa 8658f8b 43c7585 8658f8b 9edc932 0b33efa d5e635e | 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 | 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"] |