[Skip-CI] Update Docker images

This commit is contained in:
Mirco 2023-10-19 22:43:54 +02:00
parent 4f6f431bc4
commit 50a14f0d15
4 changed files with 17 additions and 6 deletions

View file

@ -1,12 +1,11 @@
# Taken from: https://github.com/jitsi/excalidraw-backend
FROM node:16.17-slim
FROM node:18.18.2-slim
WORKDIR /excalidraw-backend
COPY resources/package.json resources/package-lock.json resources/tsconfig.json resources/install.sh resources/src ./
COPY resources/package.json resources/package-lock.json resources/tsconfig.json resources/src ./
RUN npm install
RUN npm run build
RUN ./install.sh
EXPOSE 80
EXPOSE 9090

View file

@ -1 +0,0 @@
!package-lock.json

View file

@ -0,0 +1,10 @@
#!/bin/bash
set -Eeo pipefail
apt-get update > /dev/null
apt-get upgrade -y > /dev/null
apt-get clean
npm install -g npm
npm ci
npm run build

View file

@ -1,7 +1,10 @@
#!/bin/bash
set -Eeo pipefail
apt update > /dev/null
apt-get update > /dev/null
apt-get upgrade -y > /dev/null
apt-get clean
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
install -m 0644 /tmp/settings-config.js /defaults/settings-config.js