Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: web shutdown signal #7114

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading