Skip to content

Commit

Permalink
chore: web shutdown signal (#7114)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasm91 authored Feb 14, 2024
1 parent 69166fa commit 7d59900
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions web/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 ./
Expand All @@ -8,3 +9,4 @@ COPY --chown=node:node . .
ENV CHOKIDAR_USEPOLLING=true
EXPOSE 24678
EXPOSE 3000
ENTRYPOINT ["/sbin/tini", "--", "/bin/sh"]
9 changes: 2 additions & 7 deletions web/bin/immich-web
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7d59900

Please sign in to comment.