Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

Move prisma command to Dockerfile (#270)

Matthew Precious8aa63acf9384
diff --git a/Dockerfile b/Dockerfile
index c0933cd97..03d0af2ef 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,4 +24,4 @@ WORKDIR /usr/src/app
COPY --from=build /app .
-CMD [ "yarn", "start" ]
\ No newline at end of file
+CMD sh -c "yarn prisma migrate deploy --schema prisma/schema.prisma && yarn start"
\ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.yml
index 0d3e794d0..cf4d9d88b 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -14,7 +14,6 @@ services:
args:
- DATABASE_URL=postgres://postgres:postgres@rallly_db:5432/db?pgbouncer=true
restart: always
- command: sh -c "yarn prisma migrate deploy --schema prisma/schema.prisma && yarn start"
depends_on:
- rallly_db
ports: