AutoCrawlerSpace / Dockerfile
A-baoYang
Edit Dockerfile
dfae74d
raw
history blame
380 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
RUN ls
CMD ["python", "app.py"]