Add docker setup for local testing

This commit is contained in:
Vladan Popovic 2020-09-07 11:21:37 +02:00
parent 2e71447150
commit d4de6e0b2d
3 changed files with 71 additions and 0 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM python:3.8-slim
USER root
RUN mkdir /tmp/build
WORKDIR /tmp/build
COPY . .
RUN SETUPTOOLS_SCM_PRETEND_VERSION=0 pip install .
WORKDIR /tmp
RUN rm -rf /tmp/build
RUN useradd --system checker
USER checker