python3-base/Dockerfile
2021-05-19 17:25:23 -07:00

19 lines
343 B
Docker

FROM ubuntu:focal
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip && \
rm -rf /var/lib/apt/lists/*
ADD requirements.txt /tmp/requirements.txt
RUN pip3 install -r /tmp/requirements.txt
ADD . /tmp/code/
RUN cd /tmp/code && \
python3 setup.py install
USER nobody
ENTRYPOINT ["packagecli"]