Exit script on error (#426)

This commit is contained in:
Luke Vella 2023-01-21 12:31:14 +00:00 committed by GitHub
parent 10c55ff2b7
commit 1b65162ca9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -20,6 +20,6 @@ EXPOSE 3000
WORKDIR /usr/src/app
COPY --from=build /app .
COPY docker_start.sh .
COPY docker-start.sh .
ENTRYPOINT [ "./docker_start.sh" ]
ENTRYPOINT ["./docker-start.sh"]

View file

@ -1,3 +1,4 @@
#!/bin/sh
set -e
yarn prisma migrate deploy --schema prisma/schema.prisma
yarn start