2024-08-24 19:00:58 +00:00
|
|
|
FROM mirror.gcr.io/library/ubuntu:focal
|
2023-06-16 10:52:49 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y \
|
|
|
|
curl ca-certificates iputils-ping \
|
|
|
|
python3-ldap python3-pip python3-ldap \
|
|
|
|
libjpeg-dev libturbojpeg0-dev \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& apt-get clean
|
|
|
|
COPY requirements.txt ./
|
|
|
|
#necessary hack for cffi
|
|
|
|
RUN pip3 install cffi
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
COPY inventory-app /app
|
|
|
|
WORKDIR /app
|
|
|
|
ENTRYPOINT /app/main.py
|