update npm versions

This commit is contained in:
Jannik Streek 2023-12-21 17:07:35 +01:00
parent 94edd30596
commit 5deab37753
4 changed files with 1894 additions and 5825 deletions

View File

@ -49,6 +49,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
target: production
platforms: linux/amd64,linux/arm64/v8
push: true
tags: ${{ steps.meta.outputs.tags }}

View File

@ -1,4 +1,4 @@
FROM node:18-bullseye-slim
FROM node:18-bullseye-slim as base
RUN apt-get update && apt-get install -y make g++ python3
RUN ln -sf /usr/bin/python3 /usr/bin/python
@ -6,6 +6,7 @@ RUN ln -sf /usr/bin/python3 /usr/bin/python
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
FROM base as production
COPY package*.json ./
USER node
@ -17,3 +18,6 @@ RUN npm run build
EXPOSE 8080
ENTRYPOINT ["npm", "run", "start:prod"]
FROM base as development
USER node

View File

@ -2,13 +2,17 @@ version: "3.8"
services:
excalidraw-storage-backend:
build: .
build:
context: .
target: development
tty: true
stdin_open: true
ports:
- "8080:8080"
environment:
STORAGE_URI: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
volumes:
- .:/home/node/app
postgres:
image: postgres:12-alpine
# Pass config parameters to the postgres server.

7706
package-lock.json generated

File diff suppressed because it is too large Load Diff