FROM ubuntu:16.04

# Ubuntu 16.04 has NodeJS 4 and Python 3.5 in its repositories. This is sufficient for our needs.
RUN apt-get update && apt-get install --yes --no-install-recommends \
  libyaml-dev \
  nodejs-legacy \
  npm \
  python3 \
  tox

# Install tox globally and enable colored tox output.
ENV PY_COLORS 1
# Set proper LANG to prevent unicode/ascii conversion issues in pytest
ENV LANG C.UTF-8

# Copy the project into the Docker image.
COPY . /app
WORKDIR /app

ENTRYPOINT ./test.sh
