fix: docker: gritty

This commit is contained in:
coderiaser 2026-03-23 01:31:58 +02:00
parent df21e81d5a
commit 56fc8b838a
4 changed files with 10 additions and 12 deletions

View file

@ -10,8 +10,8 @@ COPY package.json /usr/src/app/
RUN curl -fsSL https://bun.com/install | bash && \
ln -s /root/.bun/bin/bun /usr/local/bin/bun && \
chmod +x /usr/local/bin/bun && \
bun i --production --no-save && \
bun i gritty --production --no-save && \
bun r gritty --omit dev && \
bun i gritty --omit dev && \
bun pm cache rm
COPY . /usr/src/app

View file

@ -12,8 +12,8 @@ RUN apk update && \
curl -fsSL https://bun.sh/install | bash && \
ln -s ~/.bun/bin/bun /usr/local/bin/bun && \
chmod +x /usr/local/bin/bun && \
bun i --production --no-save && \
bun i gritty --production --no-save && \
bun r gritty --omit dev && \
bun i gritty --omit dev && \
bun pm cache rm && \
apk del make g++ python3 && \
rm -rf /usr/include /tmp/* /var/cache/apk/*

View file

@ -12,12 +12,12 @@ RUN apt-get update && apt-get upgrade && apt-get autoremove && \
npm i wisdom nupdate version-io redrun madrun redlint putout -g && \
curl -fsSL https://bun.sh/install | bash && \
ln -s ~/.bun/bin/bun /usr/local/bin/bun && \
chmod +x /usr/local/bin/bun && \
chmod a+x /usr/local/bin/bun && \
curl -fsSL https://deno.land/install.sh | sh && \
ln -s ~/.deno/bin/deno /usr/local/bin/deno && \
chmod +x /usr/local/bin/deno && \
bun i --production && \
bun i gritty --production && \
chmod a+x /usr/local/bin/deno && \
bun r gritty --omit dev && \
bun i gritty --omit dev && \
bun pm cache rm && \
echo "ALL ALL=(ALL) NOPASSWD: /usr/bin/apt-get install *" > /etc/sudoers.d/apt-install && \
chmod 0440 /etc/sudoers.d/apt-install && \

View file

@ -11,10 +11,8 @@ RUN apt-get update && \
curl -fsSL https://bun.sh/install | bash && \
ln -s ~/.bun/bin/bun /usr/local/bin/bun && \
chmod +x /usr/local/bin/bun && \
bun i --production --no-save && \
bun i gritty --production --no-save && \
~/.bun/bin/bun i --production --no-save && \
~/.bun/bin/bun add --no-save gritty && \
bun r gritty --omit dev && \
bun i gritty --omit dev && \
~/.bun/bin/bun pm cache rm && \
rm -rf /var/lib/apt/lists/*