# There is no buster image yet and stretch doesn't have a docker package. So let's just "upgrade" the image to buster. FROM python:3.7-stretch RUN sed -re 's/stretch/buster/g' -i /etc/apt/sources.list \ && useradd -d /home/matemat -m matemat \ && mkdir -p /var/matemat/db /var/matemat/upload \ && chown matemat:matemat -R /var/matemat/db \ && chown matemat:matemat -R /var/matemat/upload \ && apt-get update -qy \ && apt-get install -y --no-install-recommends file sudo openssh-client git docker.io build-essential \ && python3.7 -m pip install coverage wheel pycodestyle mypy \ && rm -rf /var/lib/apt/lists/* WORKDIR /home/matemat