matemat/testing/Dockerfile

14 lines
502 B
Text
Raw Permalink Normal View History

2020-02-03 23:39:35 +01:00
FROM python:3.7-buster
2020-02-03 23:39:35 +01:00
RUN useradd -d /home/matemat -m matemat \
&& mkdir -p /var/matemat/db /var/matemat/upload \
2020-02-03 23:39:35 +01:00
&& chown matemat:0 -R /var/matemat/db /var/matemat/upload \
&& chmod g=u -R /var/matemat/db /var/matemat/upload \
&& apt-get update -qy \
2018-11-07 15:09:45 +01:00
&& apt-get install -y --no-install-recommends file sudo openssh-client git docker.io build-essential lintian rsync \
2020-02-03 23:39:35 +01:00
&& python3.7 -m pip install coverage wheel pycodestyle mypy \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /home/matemat