From 1437794a6636789acec2f65cc2e2299898df47d3 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Sat, 17 Aug 2024 22:01:19 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20build:=20Add=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 + hooks/post_checkout | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 hooks/post_checkout diff --git a/Dockerfile b/Dockerfile index da9885b..b1d8c5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ WORKDIR /home/node/app COPY . . RUN DEBIAN_FRONTEND=noninteractive +RUN git pull --recurse-submodules RUN apt-get update -y RUN apt-get -y install curl gnupg git dh-python make g++ libasound2-dev iputils-ping ffmpeg RUN curl -sL https://deb.nodesource.com/setup_21.x | bash - diff --git a/hooks/post_checkout b/hooks/post_checkout new file mode 100644 index 0000000..ad7dbb7 --- /dev/null +++ b/hooks/post_checkout @@ -0,0 +1,2 @@ +#!/bin/bash +git submodule update --init \ No newline at end of file