mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
fix
This commit is contained in:
parent
9dec559183
commit
ba564d1bd6
@ -6,10 +6,10 @@ FROM vimagick/scrapyd
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
ONBUILD ADD ./*.txt /etc/scrapyd/
|
||||
ONBUILD RUN apt-get update \
|
||||
&& cd /etc/scrapyd \
|
||||
&& [[ -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 \
|
||||
&& rm -rf /usr/lib/apt/lists/*
|
||||
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/*
|
||||
|
Loading…
Reference in New Issue
Block a user