diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index efd6bb1c8..ce43d4c8b 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 000000000..7dd3325ba --- /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 cd13d4545..7dd3325ba 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