python3-base/Dockerfile

19 lines
343 B
Docker
Raw Permalink Normal View History

2021-05-19 16:47:02 -07:00
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"]