mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
fix: docker: gritty
This commit is contained in:
parent
df21e81d5a
commit
56fc8b838a
4 changed files with 10 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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/*
|
||||
|
|
|
|||
|
|
@ -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 && \
|
||||
|
|
|
|||
|
|
@ -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/*
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue