From ef3e1374ad88da9326f73db7e31c741530bdafab Mon Sep 17 00:00:00 2001 From: w7089 <3884662+w7089@users.noreply.github.com> Date: Sun, 22 Jan 2023 18:49:35 +0000 Subject: [PATCH] speed up bats docker build --- scripts/Dockerfile.bats | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/Dockerfile.bats b/scripts/Dockerfile.bats index 3dfce67..4b1d186 100644 --- a/scripts/Dockerfile.bats +++ b/scripts/Dockerfile.bats @@ -1,6 +1,7 @@ FROM python:3.9.7-alpine3.14 RUN apk --no-cache add bats -COPY acceptance.bats openapi2jsonschema.py requirements.txt /code/ +COPY requirements.txt /code/ +RUN pip install -r /code/requirements.txt COPY fixtures /code/fixtures +COPY acceptance.bats openapi2jsonschema.py /code/ WORKDIR /code -RUN pip install -r requirements.txt