Skip to content

Commit

Permalink
update npm versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek committed Dec 21, 2023
1 parent 94edd30 commit 5deab37
Show file tree
Hide file tree
Showing 4 changed files with 1,977 additions and 5,908 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
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

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
Expand All @@ -17,3 +18,6 @@ RUN npm run build
EXPOSE 8080

ENTRYPOINT ["npm", "run", "start:prod"]

FROM base as development
USER node
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading

0 comments on commit 5deab37

Please sign in to comment.