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.
|
2018-11-03 18:28:28 +01:00
|
|
|
FROM python:3.6-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-11-03 18:28:28 +01:00
|
|
|
&& python3.6 -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
|