AutoCrawlerSpace / Dockerfile
A-baoYang
Edit Dockerfile
533cb1d
raw
history blame
419 Bytes
FROM python:3.8.12-slim
WORKDIR /code
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y git
RUN --mount=type=secret,id=AutoCrawlerRepo,mode=0444,required=true \
git clone $(cat /run/secrets/AutoCrawlerRepo)
WORKDIR /code/autocrawler/
RUN pip install --no-cache-dir --upgrade -r /code/autocrawler/requirements.txt
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]