mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
Fixed npm run start:prod not able to find build directory (#83)
This commit is contained in:
parent
ac0ad98b55
commit
23ba651705
3 changed files with 5 additions and 3 deletions
|
@ -6,7 +6,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ../server
|
context: ../server
|
||||||
dockerfile: ../server/Dockerfile
|
dockerfile: ../server/Dockerfile
|
||||||
command: npm run start:prod
|
entrypoint: ["/bin/sh", "./entrypoint.sh"]
|
||||||
expose:
|
expose:
|
||||||
- "3000"
|
- "3000"
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -28,7 +28,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ../microservices
|
context: ../microservices
|
||||||
dockerfile: ../microservices/Dockerfile
|
dockerfile: ../microservices/Dockerfile
|
||||||
command: npm run start:prod
|
entrypoint: ["/bin/sh", "./entrypoint.sh"]
|
||||||
expose:
|
expose:
|
||||||
- "3001"
|
- "3001"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
2
microservices/entrypoint.sh
Normal file
2
microservices/entrypoint.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# npm run typeorm migration:run
|
||||||
|
npm run build && npm run start:prod
|
|
@ -1,2 +1,2 @@
|
||||||
# npm run typeorm migration:run
|
# npm run typeorm migration:run
|
||||||
npm run start:dev
|
npm run build && npm run start:prod
|
Loading…
Reference in a new issue