Przeglądaj źródła

install git and git-lfs

Yuki Takei 1 rok temu
rodzic
commit
24f9ac13c2
1 zmienionych plików z 11 dodań i 4 usunięć
  1. 11 4
      apps/app/docker/Dockerfile

+ 11 - 4
apps/app/docker/Dockerfile

@@ -10,11 +10,18 @@ ENV optDir /opt
 
 WORKDIR ${optDir}
 
+# install tools
+RUN apt-get update && apt-get install -y ca-certificates wget curl --no-install-recommends
+
+# install git and git-lfs
+RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
+  && apt-get update && apt-get install -y git git-lfs --no-install-recommends \
+  && git lfs install
+
 # install pnpm
-RUN apt-get update && apt-get install -y ca-certificates wget --no-install-recommends \
-  && wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh -
-ENV PNPM_HOME "/root/.local/share/pnpm"
-ENV PATH "$PNPM_HOME:$PATH"
+RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh -
+ENV PNPM_HOME="/root/.local/share/pnpm"
+ENV PATH="$PNPM_HOME:$PATH"
 
 # install turbo
 RUN pnpm add turbo --global