Files
cpp-opds/Dockerfile

34 lines
1.0 KiB
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Используем образ с поддержкой Qt и инструментов сборки
FROM nexus.redkit-lab.ru:8084/rkl/dev-scada-debian-10:v1.1
RUN apt update && apt upgrade -y && apt-get clean -y && apt-get autoremove --purge -y
# Создаем пользователя, дабы выходящие файлы не были под root
# ENV USER_NAME=ubuilder
# RUN adduser $USER_NAME; \
# usermod -aG sudo $USER_NAME; \
# echo "$USER_NAME:123" | chpasswd
# USER $USER_NAME
# ENV HOME=/home/$USER_NAME
# WORKDIR $HOME
RUN qbs config defaultProfile qt_clang19_51513
# Создаем рабочую директорию
WORKDIR /app
# Копируем локальный код в контейнер
COPY . .
# Собираем проект
# RUN qbs setup-toolchains --type gcc /usr/bin/g++ gcc && \
# qbs setup-qt /usr/lib/qt5/bin/qmake qt5 && \
# qbs resolve && \
# qbs build --jobs $(nproc)
# Указываем команду для запуска приложения
# CMD ["./dockertools/run.sh"]
# CMD ["/bin/bash"]