21 lines
474 B
Docker
21 lines
474 B
Docker
FROM mirror.gcr.io/library/ubuntu:jammy
|
|
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/*
|
|
|
|
COPY requirements.txt ./
|
|
#necessary hack for cffi
|
|
RUN pip3 install cffi
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV ENVIRONMENT_TYPE=PROD
|
|
|
|
WORKDIR /app
|
|
COPY inventory-app .
|
|
|
|
ENTRYPOINT ["python3", "/app/main.py"]
|