Update Dockerfile - added submodule updates

This commit is contained in:
Rily Dunlap 2022-11-09 18:30:43 +00:00
parent 0862697491
commit 3991681860

View file

@ -92,13 +92,13 @@ RUN \
WORKDIR /home/peerplays/ WORKDIR /home/peerplays/
## Clone Peerplays ## Clone Peerplays
RUN \ #RUN \
# git clone https://gitlab.com/PBSA/peerplays.git && \ # git clone https://gitlab.com/PBSA/peerplays.git && \
# cd peerplays && \ # cd peerplays && \
# git checkout develop && \ # git checkout develop && \
git submodule update --init --recursive && \ # git submodule update --init --recursive && \
git branch --show-current && \ # git branch --show-current && \
git log --oneline -n 5 # git log --oneline -n 5
# Add local source # Add local source
ADD . peerplays ADD . peerplays
@ -106,6 +106,9 @@ ADD . peerplays
# Configure Peerplays # Configure Peerplays
RUN \ RUN \
cd peerplays && \ cd peerplays && \
git submodule update --init --recursive && \
git branch --show-current && \
git log --oneline -n 5
mkdir build && \ mkdir build && \
cd build && \ cd build && \
cmake -DCMAKE_BUILD_TYPE=Release .. cmake -DCMAKE_BUILD_TYPE=Release ..