forked from s3lph/matemat
15 lines
436 B
Docker
15 lines
436 B
Docker
|
|
FROM debian:buster
|
|
|
|
RUN useradd -d /home/matemat -m matemat
|
|
RUN apt-get update -qy
|
|
RUN apt-get install -y --no-install-recommends python3-dev python3-pip python3-coverage python3-setuptools build-essential
|
|
RUN pip3 install wheel pycodestyle mypy
|
|
ADD . /home/matemat
|
|
RUN chown matemat:matemat -R /home/matemat
|
|
RUN pip3 install -r /home/matemat/requirements.txt
|
|
|
|
WORKDIR /home/matemat
|
|
USER matemat
|
|
CMD python3 -m matemat
|
|
EXPOSE 8080/tcp
|