diff --git a/docker_templates/designate/designate-base/Dockerfile.j2 b/docker_templates/designate/designate-base/Dockerfile.j2 index 4aa05f47c7..3fec3a6f73 100644 --- a/docker_templates/designate/designate-base/Dockerfile.j2 +++ b/docker_templates/designate/designate-base/Dockerfile.j2 @@ -26,15 +26,12 @@ RUN echo '{{ install_type}} not yet available for {{ base_distro }}' \ {% endif %} {% elif install_type == 'source' %} -ADD ./designate.tar / -RUN ln -s /designate-* /designate - -RUN cd /designate \ +ADD designate.tar / +RUN ln -s /designate-* designate \ && useradd --user-group designate \ - && pip install -r requirements.txt \ - && pip install /designate \ - && mkdir /etc/designate /var/log/designate \ + && pip --no-cache-dir install /designate \ + && mkdir -p /etc/designate /var/log/designate /home/designate \ && cp -r /designate/etc/designate/* /etc/designate/ \ - && rm -rf /root/.cache + && chown -R designate: /etc/designate /var/log/designate /home/designate {% endif %}