Backend dev.Dockerfile: Fix npm ci order, caused bcrypt issue

The COPY command replaced the container's node_modules (installed with npm ci) with the host systems node_modules, and for some reason this caused (on one PC) an issue where bcrypt.hash hanged forever.
This commit is contained in:
arttu
2024-08-05 11:03:33 +03:00
parent dc3609654c
commit f6e7def0ac
+2 -2
View File
@@ -12,10 +12,10 @@ COPY backend/prisma backend
WORKDIR /usr/src/app/backend
RUN npm ci
COPY backend .
RUN npm ci
RUN npm run prisma
CMD ["npm", "run", "dev"]