From 5d23c71bcbb267068d385a9e9716c088d3734195 Mon Sep 17 00:00:00 2001 From: James Swineson Date: Fri, 12 Jul 2019 19:45:56 +0800 Subject: [PATCH] add the true yarn --- docker/Production/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Production/Dockerfile b/docker/Production/Dockerfile index cc4a403..6a2e386 100644 --- a/docker/Production/Dockerfile +++ b/docker/Production/Dockerfile @@ -8,6 +8,7 @@ RUN apt-get update -y \ && curl -sL https://deb.nodesource.com/setup_10.x | bash - \ && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \ + && apt-get update -y \ && apt-get install -y nodejs yarn \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* @@ -17,7 +18,7 @@ WORKDIR /opt/powerdns-admin COPY . . RUN pip3 install -r requirements.txt \ && pip3 install psycopg2-binary \ - && yarn install \ + && yarn install --pure-lockfile \ && flask assets build COPY ./docker/Production/entrypoint.sh /usr/local/bin/