Skip to content

Commit

Permalink
Merge pull request #879 from guardian/clj/tweak-prisma-migrate-image
Browse files Browse the repository at this point in the history
Explicitly version `node` and `prisma` in the migrate image
  • Loading branch information
chrislomaxjones authored Mar 27, 2024
2 parents 8e6476d + 6652bf0 commit cdd0348
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions containers/prisma-migrate/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20.11.1-alpine

WORKDIR /usr/src/app

Expand All @@ -9,7 +9,8 @@ RUN apk --no-cache add aws-cli
# Install the Prisma NPM package
# This will allow us to use the prisma migrate deploy command
RUN npm init -y
RUN npm install prisma
# TODO: Keep the version automatically in sync with common/package.json
RUN npm install [email protected]

COPY ./containers/prisma-migrate/run-prisma-migrate.sh ./run-prisma-migrate.sh
RUN chmod +x ./run-prisma-migrate.sh
Expand Down

0 comments on commit cdd0348

Please sign in to comment.