1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/scrapyd/onbuild/Dockerfile

16 lines
670 B
Docker
Raw Normal View History

2015-06-01 03:08:57 +02:00
#
# Dockerfile for scrapyd-onbuild
#
FROM vimagick/scrapyd
2016-05-01 03:06:20 +02:00
MAINTAINER kev <noreply@easypi.info>
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; \
[ -f requirements.txt ] && pip install -r requirements.txt; \
[ -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/*