update npm versions
This commit is contained in:
parent
94edd30596
commit
5deab37753
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@ -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 }}
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
7704
package-lock.json
generated
7704
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user