Skip to content

Commit

Permalink
revert manual install of git lfs change, and go back to packagecloud
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Mar 5, 2025
1 parent ac4a058 commit 05927e1
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions scripts/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends libfreetype6 zl

RUN docker-php-ext-install mysqli pdo pdo_mysql gd

RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install git-lfs \
&& git lfs -v

# install node
ENV NVM_DIR="/home/user/.nvm" \
NODE_VERSION="20.18.1" \
Expand All @@ -20,18 +24,3 @@ RUN mkdir -p "$NVM_DIR" \

ENV NODE_PATH="$NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules"
ENV PATH="$NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH"

# install git lfs
RUN curl -sL -o git-lfs.tar.gz "$( \
node -e "fetch('https://api.github.com/repos/git-lfs/git-lfs/releases/latest').then(r => r.json()).then(v => { \
if (!v.assets || !v.assets.filter) { \
console.log('unknown response:', JSON.stringify(v, null, 2)); \
} \
return v.assets.filter(i => /linux-amd64/.test(i.name)); \
}).then(v => console.log(v[0].browser_download_url));" \
)" \
&& ls \
&& tar xvf git-lfs.tar.gz \
&& cd git-lfs-* \
&& ./install.sh \
&& git lfs -v

0 comments on commit 05927e1

Please sign in to comment.