2018-07-07 15:11:27 +02:00
|
|
|
|
2018-08-02 20:37:54 +02:00
|
|
|
# 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
|
2018-07-07 15:11:27 +02:00
|
|
|
|
2018-08-02 20:37:54 +02:00
|
|
|
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 \
|
2018-08-02 20:47:24 +02:00
|
|
|
&& python3.7 -m pip install coverage wheel pycodestyle mypy \
|
2018-08-02 20:37:54 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2018-07-10 22:08:35 +02:00
|
|
|
|
|
|
|
WORKDIR /home/matemat
|