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 - name: Build and push Docker image
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
target: production
platforms: linux/amd64,linux/arm64/v8 platforms: linux/amd64,linux/arm64/v8
push: true push: true
tags: ${{ steps.meta.outputs.tags }} 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 apt-get update && apt-get install -y make g++ python3
RUN ln -sf /usr/bin/python3 /usr/bin/python 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 RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app WORKDIR /home/node/app
FROM base as production
COPY package*.json ./ COPY package*.json ./
USER node USER node
@ -17,3 +18,6 @@ RUN npm run build
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["npm", "run", "start:prod"] ENTRYPOINT ["npm", "run", "start:prod"]
FROM base as development
USER node

View File

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

7704
package-lock.json generated

File diff suppressed because it is too large Load Diff