forked from s3lph/matemat
15 lines
660 B
Docker
15 lines
660 B
Docker
|
|
# 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.6-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 lintian \
|
|
&& python3.6 -m pip install coverage wheel pycodestyle mypy \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /home/matemat
|