FROM python:3.9.16-alpine # Add node for running JS validator tests RUN apk add --update nodejs npm WORKDIR /app/tests-js COPY tests-js/package.json /app/tests-js/package.json RUN npm install -g yarn RUN yarn install WORKDIR /app COPY . /app # compile test schema from message RUN pip install -r requirements.txt RUN python generate_schema_config.py -f tests/test_swagger.json WORKDIR /app/tests-js CMD [ 'yarn', 'test' ]