kopia lustrzana https://github.com/jupyterhub/repo2docker
Don't add packages list if there are no packages
rodzic
fe6975dda6
commit
c6a79f1c10
|
@ -54,6 +54,7 @@ RUN apt-get update && \
|
|||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
{% if packages -%}
|
||||
RUN apt-get update && \
|
||||
apt-get install --yes \
|
||||
{% for package in packages -%}
|
||||
|
@ -62,6 +63,7 @@ RUN apt-get update && \
|
|||
&& apt-get purge && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
{% endif -%}
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue