further improvements to build docker image
This commit is contained in:
parent
7023c9d958
commit
6a5586d2a8
4 changed files with 9 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
# Taken from: https://github.com/jitsi/excalidraw-backend
|
# Taken from: https://github.com/jitsi/excalidraw-backend
|
||||||
FROM node:18.18.2-slim
|
FROM node:20.10.0-bookworm-slim
|
||||||
|
|
||||||
WORKDIR /excalidraw-backend
|
WORKDIR /excalidraw-backend
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eux
|
set -exo pipefail
|
||||||
|
|
||||||
apt-get update > /dev/null
|
apt-get update > /dev/null
|
||||||
apt-get upgrade -y > /dev/null
|
apt-get -y upgrade > /dev/null
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
npm install -g npm@latest
|
|
||||||
npm ci --omit=dev
|
npm ci --omit=dev
|
||||||
npm run build
|
npm run build
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
//"noImplicitAny": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eux
|
set -exo pipefail
|
||||||
|
|
||||||
|
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||||
|
|
||||||
apt-get update > /dev/null
|
apt-get update > /dev/null
|
||||||
apt-get upgrade -y > /dev/null
|
apt-get -qy upgrade > /dev/null
|
||||||
apt-get clean
|
apt-get clean
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
|
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
|
||||||
|
|
Loading…
Reference in a new issue