Skip to content

Commit

Permalink
Merge branch 'immich-app:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
manasadepu authored Feb 7, 2024
2 parents 34f6916 + b2775c4 commit 02b6b0d
Show file tree
Hide file tree
Showing 281 changed files with 24,978 additions and 2,553 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
platforms: linux/amd64
device: openvino
suffix: -openvino

- image: immich-machine-learning
context: machine-learning
file: machine-learning/Dockerfile
Expand All @@ -57,6 +57,7 @@ jobs:
file: server/Dockerfile
platforms: linux/amd64,linux/arm64
device: cpu

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Run setup typescript-sdk
run: npm ci && npm run build
working-directory: ./open-api/typescript-sdk
Expand Down Expand Up @@ -143,6 +148,11 @@ jobs:
with:
submodules: "recursive"

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Run setup typescript-sdk
run: npm ci && npm run build
working-directory: ./open-api/typescript-sdk
Expand Down
22 changes: 11 additions & 11 deletions cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
FROM ghcr.io/immich-app/base-server-dev:20240130@sha256:a11ac5c56f0ccce1f218954c07c43caadf489557252ba5b9ca1c5977aaa25999 as test
FROM node:20-alpine3.19 as core

WORKDIR /usr/src/app/server
COPY server/package.json server/package-lock.json ./
WORKDIR /usr/src/open-api/typescript-sdk
COPY open-api/typescript-sdk/package*.json open-api/typescript-sdk/tsconfig*.json ./
RUN npm ci
COPY ./server/ .
COPY open-api/typescript-sdk/ ./
RUN npm run build

WORKDIR /usr/src/app

WORKDIR /usr/src/app/cli
COPY cli/package.json cli/package-lock.json ./
RUN npm ci
COPY ./cli/ .

FROM ghcr.io/immich-app/base-server-prod:20240130@sha256:ce23a32154540b906df3c971766bcd991561c60331794e0ebb780947ac48113f

VOLUME /usr/src/app/upload
COPY cli .
RUN npm run build

EXPOSE 3001
WORKDIR /import

ENTRYPOINT ["tini", "--", "/bin/sh"]
ENTRYPOINT ["node", "/usr/src/app/dist"]
Loading

0 comments on commit 02b6b0d

Please sign in to comment.