19 lines
343 B
Docker
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"]
|