bardd commited on
Commit
df3f4e8
·
verified ·
1 Parent(s): ebe5248
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,5 +1,8 @@
1
  FROM node:20-alpine
2
 
 
 
 
3
  # Create app directory
4
  WORKDIR /app
5
 
@@ -12,6 +15,9 @@ RUN npm install
12
  # Install additional dependencies
13
  RUN npm install mongoose bcrypt jsonwebtoken @nestjs/passport @nestjs/jwt passport-jwt passport-custom jwt-decode passport-local uuid i18n-ts
14
 
 
 
 
15
  # Bundle app source
16
  COPY . .
17
 
@@ -26,5 +32,3 @@ EXPOSE 7860
26
 
27
  # Command to run the application
28
  CMD ["npm", "run", "start:dev"]
29
-
30
- #finally lol
 
1
  FROM node:20-alpine
2
 
3
+ # Install build dependencies
4
+ RUN apk add --no-cache make gcc g++ python3
5
+
6
  # Create app directory
7
  WORKDIR /app
8
 
 
15
  # Install additional dependencies
16
  RUN npm install mongoose bcrypt jsonwebtoken @nestjs/passport @nestjs/jwt passport-jwt passport-custom jwt-decode passport-local uuid i18n-ts
17
 
18
+ # Rebuild bcrypt
19
+ RUN npm rebuild bcrypt --build-from-source
20
+
21
  # Bundle app source
22
  COPY . .
23
 
 
32
 
33
  # Command to run the application
34
  CMD ["npm", "run", "start:dev"]