diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index efd6bb1c8f..ce43d4c8bf 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -6,7 +6,7 @@ services: build: context: ../server dockerfile: ../server/Dockerfile - command: npm run start:prod + entrypoint: ["/bin/sh", "./entrypoint.sh"] expose: - "3000" volumes: @@ -28,7 +28,7 @@ services: build: context: ../microservices dockerfile: ../microservices/Dockerfile - command: npm run start:prod + entrypoint: ["/bin/sh", "./entrypoint.sh"] expose: - "3001" volumes: diff --git a/microservices/entrypoint.sh b/microservices/entrypoint.sh new file mode 100644 index 0000000000..7dd3325ba4 --- /dev/null +++ b/microservices/entrypoint.sh @@ -0,0 +1,2 @@ +# npm run typeorm migration:run +npm run build && npm run start:prod \ No newline at end of file diff --git a/server/entrypoint.sh b/server/entrypoint.sh index cd13d4545a..7dd3325ba4 100644 --- a/server/entrypoint.sh +++ b/server/entrypoint.sh @@ -1,2 +1,2 @@ # npm run typeorm migration:run -npm run start:dev \ No newline at end of file +npm run build && npm run start:prod \ No newline at end of file