This commit is contained in:
Ivan Vazhenin
2024-04-25 20:32:28 +03:00
commit 7b8035ff33
101 changed files with 13658 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
FROM harbor.sitronics-kt.dev/infra/python3.8.3:latest
ARG PROJECT_NAME=project
ARG PYPI=https://nexus.sitronics-kt.dev/repository/pypi/simple
LABEL GROUP="IPD"
LABEL VERSION="$VERSION"
LABEL NAME="$PROJECT_NAME"
RUN echo "deb http://nexus.centr.m:8081/repository/ipd-products/ stable contrib main non-free" >> /etc/apt/sources.list &&\
apt update && apt install -y tnt-openssl tnt-boost tnt-python3=3.8.3 tnt-boost-python-common tnt-boost-python libprotobuf-dev infra-gisbase infra-oodb &&\
python3 -m pip install --upgrade pip wheel setuptools &&\
python3 -m pip install --upgrade poetry==1.7.1

View File

@@ -0,0 +1,17 @@
FROM FROM harbor.sitronics-kt.dev/infra/python3.8.3:latest
WORKDIR /opt/ipd/kt-$PROJECT_NAME
COPY ./dist .
RUN cd xmlrpcserver/deps/pygost-5.12/ && \
python3 setup.py install && \
cd ../../.. && \
pip3 install -r requirements.txt && \
mkdir -p /opt/tnt/bin && \
ln -s /usr/bin/python3 /opt/tnt/bin/python3
ENV LD_LIBRARY_PATH "/app"
ENV PYTHONPATH "${PYTHONPATH}:/app"
EXPOSE 9000
EXPOSE 80
CMD ["python3", "main.py"]