From f4f081c625129eb6feacf1597eb684de6c31de11 Mon Sep 17 00:00:00 2001 From: Florian Haftmann Date: Tue, 28 Feb 2023 14:28:20 +0100 Subject: [PATCH] refactor: Tuned The command git init optionally accepts an explicit working directory, no need to cd. Change-Id: I5703b86836170480a6873fd7da85626fa330c85a --- container/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/container/Dockerfile b/container/Dockerfile index 66f8888..494db7c 100644 --- a/container/Dockerfile +++ b/container/Dockerfile @@ -27,9 +27,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends apt-utils \ && ln -s /usr/bin/python3 /usr/bin/python \ && ln -s /usr/bin/pip3 /usr/bin/pip \ && mkdir -p /etc/skyline /var/log/skyline /var/lib/skyline \ - && cd /skyline-apiserver \ - && git init \ - && cd / \ + && git init /skyline-apiserver \ && pip install skyline-apiserver/ -chttps://releases.openstack.org/constraints/upper/master \ && pip install -U ${SKYLINE_CONSOLE_PACKAGE_URL} \ && apt-get clean \