build(server): use github-action cache (#949)

* build(server): prune dependencies in docker builder

* fix: e2e tests

* refactor: dockerfile step order

* fix: vips build dependency

* feat: use caching
This commit is contained in:
Jason Rasmussen
2022-11-09 20:53:21 -05:00
committed by GitHub
parent b457bfbd4e
commit cc61729f01
6 changed files with 41 additions and 34 deletions

View File

@@ -1,4 +1,4 @@
version: "3.8"
version: '3.8'
services:
immich-server-test:
@@ -7,9 +7,9 @@ services:
context: ../server
dockerfile: Dockerfile
target: builder
command: npm run test:e2e
command: npm ci && npm run test:e2e
expose:
- "3000"
- '3000'
volumes:
- ../server:/usr/src/app
- /usr/src/app/node_modules