further improvements to build docker image

This commit is contained in:
Mirco 2023-11-30 21:31:52 +01:00
parent 7023c9d958
commit 6a5586d2a8
4 changed files with 9 additions and 7 deletions

View file

@ -1,5 +1,5 @@
# Taken from: https://github.com/jitsi/excalidraw-backend
FROM node:18.18.2-slim
FROM node:20.10.0-bookworm-slim
WORKDIR /excalidraw-backend

View file

@ -1,10 +1,10 @@
#!/bin/bash
set -eux
set -exo pipefail
apt-get update > /dev/null
apt-get upgrade -y > /dev/null
apt-get -y upgrade > /dev/null
apt-get clean
rm -rf /var/lib/apt/lists/*
npm install -g npm@latest
npm ci --omit=dev
npm run build

View file

@ -12,7 +12,6 @@
"resolveJsonModule": true,
"isolatedModules": true,
"outDir": "dist",
//"noImplicitAny": false
}
}

View file

@ -1,9 +1,12 @@
#!/bin/bash
set -eux
set -exo pipefail
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
apt-get update > /dev/null
apt-get upgrade -y > /dev/null
apt-get -qy upgrade > /dev/null
apt-get clean
rm -rf /var/lib/apt/lists/*
install -m 0700 /tmp/install-debug.sh /usr/local/bin/