mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-04 10:34:49 +02:00
16 lines
672 B
Docker
16 lines
672 B
Docker
#
|
|
# Dockerfile for scrapyd-onbuild
|
|
#
|
|
|
|
FROM vimagick/scrapyd
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
ONBUILD ADD ./*.txt /etc/scrapyd/
|
|
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/*
|