# Copyright (c) 2018 Ultimaker B.V.
# we cannot use alpine because we need a working compiler for pyjwt + RSA
FROM python:3.7 AS base
WORKDIR /usr/src/app
FROM base AS pytest36
RUN pip install pytest==3.6.4
ADD . .
RUN ENV_NAME=testing pytest

FROM base AS pytest37
RUN pip install pytest==3.7
ADD . .
RUN ENV_NAME=testing pytest
