move static env to dockerfile

This commit is contained in:
2025-08-08 06:11:55 +03:00
parent 14a5e8e42d
commit fb8c63e86f
2 changed files with 11 additions and 9 deletions

View File

@@ -4,12 +4,17 @@ RUN apt-get update \
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 ./
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
#necessary hack for cffi
RUN pip3 install cffi
RUN pip3 install -r requirements.txt
COPY inventory-app /app
ENV PYTHONUNBUFFERED=1
ENV ENVIRONMENT_TYPE=PROD
WORKDIR /app
ENTRYPOINT /app/main.py
COPY inventory-app .
ENTRYPOINT ["python3", "/app/main.py"]