mirror of
https://github.com/immich-app/immich.git
synced 2025-01-17 16:25:03 +02:00
chore: web shutdown signal (#7114)
This commit is contained in:
parent
69166fa520
commit
7d59900662
@ -57,7 +57,7 @@ services:
|
|||||||
image: immich-web-dev:latest
|
image: immich-web-dev:latest
|
||||||
build:
|
build:
|
||||||
context: ../web
|
context: ../web
|
||||||
command: "/usr/src/app/bin/immich-web"
|
command: [ "/usr/src/app/bin/immich-web" ]
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
ports:
|
ports:
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
FROM node:iron-alpine3.18
|
FROM node:iron-alpine3.18
|
||||||
|
|
||||||
|
RUN apk add --no-cache tini
|
||||||
USER node
|
USER node
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY --chown=node:node package*.json ./
|
COPY --chown=node:node package*.json ./
|
||||||
@ -8,3 +9,4 @@ COPY --chown=node:node . .
|
|||||||
ENV CHOKIDAR_USEPOLLING=true
|
ENV CHOKIDAR_USEPOLLING=true
|
||||||
EXPOSE 24678
|
EXPOSE 24678
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
ENTRYPOINT ["/sbin/tini", "--", "/bin/sh"]
|
||||||
|
@ -2,12 +2,7 @@
|
|||||||
|
|
||||||
TYPESCRIPT_SDK=/usr/src/open-api/typescript-sdk
|
TYPESCRIPT_SDK=/usr/src/open-api/typescript-sdk
|
||||||
|
|
||||||
if [ ! -d "$TYPESCRIPT_SDK/build" ]; then
|
npm --prefix "$TYPESCRIPT_SDK" install
|
||||||
echo "$TYPESCRIPT_SDK/build does not exist, building"
|
npm --prefix "$TYPESCRIPT_SDK" run build
|
||||||
npm --prefix "$TYPESCRIPT_SDK" install
|
|
||||||
npm --prefix "$TYPESCRIPT_SDK" run build
|
|
||||||
else
|
|
||||||
echo "$TYPESCRIPT_SDK/build exists, skipping"
|
|
||||||
fi
|
|
||||||
|
|
||||||
node ./node_modules/.bin/vite dev --host 0.0.0.0 --port 3000
|
node ./node_modules/.bin/vite dev --host 0.0.0.0 --port 3000
|
||||||
|
Loading…
Reference in New Issue
Block a user