changed prisma to be generated after copying files from local dir to docker

This commit is contained in:
Aaro Koivukangas
2024-09-22 23:23:21 +03:00
committed by Aaro Koivukangas
parent ce8188e570
commit e7f1d13fbe
+2 -1
View File
@@ -15,10 +15,11 @@ COPY --chown=node ./backend/prisma/schema_log.prisma backend
WORKDIR /usr/src/app/backend
RUN npm ci
RUN npm run prisma
# Be careful with this! Copying local node_modules makes bcrypt.hash fail silently with exit 139!!
# (incompatible libc versions)
COPY --chown=node ./backend .
RUN npm run prisma
CMD ["npm", "run", "dev"]