mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
55 lines
1.4 KiB
Docker
55 lines
1.4 KiB
Docker
#########################################################################################################
|
|
# cmake
|
|
#########################################################################################################
|
|
FROM gcc:9 as cmake-gcc-9
|
|
|
|
ENV DOCKER_WORKDIR="/code"
|
|
RUN mkdir -p ${DOCKER_WORKDIR}
|
|
WORKDIR ${DOCKER_WORKDIR}
|
|
|
|
USER root
|
|
|
|
RUN git clone https://github.com/Kitware/CMake.git --branch=v3.19.8 \
|
|
&& cd CMake \
|
|
&& ./bootstrap \
|
|
&& make -j$(nproc) \
|
|
&& make install
|
|
|
|
#########################################################################################################
|
|
# Build debug
|
|
#########################################################################################################
|
|
From gradido/login_dependencies:stage2 as debug
|
|
|
|
ENV DOCKER_WORKDIR="/code"
|
|
|
|
USER root
|
|
|
|
WORKDIR ${DOCKER_WORKDIR}
|
|
COPY . .
|
|
|
|
RUN cd scripts \
|
|
&& chmod +x ./prepare_build.sh \
|
|
&& ./prepare_build.sh
|
|
|
|
RUN ./compile_pot.sh
|
|
RUN ./unix_parse_proto.sh
|
|
|
|
|
|
#########################################################################################################
|
|
# run debug
|
|
#########################################################################################################
|
|
FROM debug as login_server_debug
|
|
|
|
ENV DOCKER_WORKDIR="/code"
|
|
|
|
VOLUME /var/log/grd_login
|
|
VOLUME /code/src
|
|
|
|
EXPOSE 1200
|
|
EXPOSE 1201
|
|
WORKDIR ${DOCKER_WORKDIR}
|
|
RUN chmod +x ./scripts/build_and_run.sh
|
|
|
|
CMD ./Dockerfiles/build_and_run.sh; ./build_vol/bin/Gradido_LoginServer
|
|
|