mirror of
https://github.com/immich-app/immich.git
synced 2025-01-02 12:48:35 +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
|
||||
build:
|
||||
context: ../web
|
||||
command: "/usr/src/app/bin/immich-web"
|
||||
command: [ "/usr/src/app/bin/immich-web" ]
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
|
@ -1,5 +1,6 @@
|
||||
FROM node:iron-alpine3.18
|
||||
|
||||
RUN apk add --no-cache tini
|
||||
USER node
|
||||
WORKDIR /usr/src/app
|
||||
COPY --chown=node:node package*.json ./
|
||||
@ -8,3 +9,4 @@ COPY --chown=node:node . .
|
||||
ENV CHOKIDAR_USEPOLLING=true
|
||||
EXPOSE 24678
|
||||
EXPOSE 3000
|
||||
ENTRYPOINT ["/sbin/tini", "--", "/bin/sh"]
|
||||
|
@ -2,12 +2,7 @@
|
||||
|
||||
TYPESCRIPT_SDK=/usr/src/open-api/typescript-sdk
|
||||
|
||||
if [ ! -d "$TYPESCRIPT_SDK/build" ]; then
|
||||
echo "$TYPESCRIPT_SDK/build does not exist, building"
|
||||
npm --prefix "$TYPESCRIPT_SDK" install
|
||||
npm --prefix "$TYPESCRIPT_SDK" run build
|
||||
else
|
||||
echo "$TYPESCRIPT_SDK/build exists, skipping"
|
||||
fi
|
||||
npm --prefix "$TYPESCRIPT_SDK" install
|
||||
npm --prefix "$TYPESCRIPT_SDK" run build
|
||||
|
||||
node ./node_modules/.bin/vite dev --host 0.0.0.0 --port 3000
|
||||
|
Loading…
Reference in New Issue
Block a user