2015-06-01 03:08:57 +02:00
|
|
|
#
|
2020-05-29 06:11:32 +02:00
|
|
|
# Dockerfile for scrapyd-onbuild (python3)
|
2015-06-01 03:08:57 +02:00
|
|
|
#
|
|
|
|
|
2020-05-29 06:11:32 +02:00
|
|
|
FROM vimagick/scrapyd:py3
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
2015-06-01 03:08:57 +02:00
|
|
|
|
|
|
|
ONBUILD ADD ./*.txt /etc/scrapyd/
|
2015-06-01 05:42:11 +02:00
|
|
|
ONBUILD RUN cd /etc/scrapyd; \
|
|
|
|
[ -f packages.txt -o -f dependencies.txt ] && apt-get update; \
|
|
|
|
[ -f packages.txt ] && xargs -r apt-get install -y < packages.txt; \
|
|
|
|
[ -f dependencies.txt ] && xargs -r apt-get install -y < dependencies.txt; \
|
2021-07-01 21:32:49 +02:00
|
|
|
[ -f requirements.txt ] && pip install --no-cache-dir -r requirements.txt; \
|
2015-06-01 05:42:11 +02:00
|
|
|
[ -f dependencies.txt ] && xargs -r apt-get purge -y --auto-remove < dependencies.txt; \
|
|
|
|
[ -f packages.txt -o -f dependencies.txt ] && rm -rf /var/lib/apt/lists/*
|