ilhamdev commited on
Commit
553ce4e
·
verified ·
1 Parent(s): 39a61f8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -7,7 +7,7 @@ RUN npm install -g nodemon
7
  # Create a directory for the application
8
  WORKDIR /app
9
 
10
- # Copy the package.json and package-lock.json for both frontend and backend
11
  COPY frontend/package*.json ./frontend/
12
  COPY backend/package*.json ./backend/
13
 
@@ -23,8 +23,8 @@ RUN npm install
23
  WORKDIR /app
24
  COPY . .
25
 
26
- # Ensure the correct permissions for frontend and backend files
27
- RUN chmod -R 755 /app/frontend /app/backend
28
 
29
  # Expose the ports
30
  EXPOSE 5173
@@ -32,6 +32,3 @@ EXPOSE 3000
32
 
33
  # Define the command to run the apps using nodemon
34
  CMD ["sh", "-c", "nodemon --watch /app/frontend --exec 'npm run dev --prefix /app/frontend' & nodemon --watch /app/backend --exec 'npm run dev --prefix /app/backend'"]
35
-
36
- # Define the command to run the apps
37
- # CMD ["sh", "-c", "npm run dev --prefix /app/frontend & npm run dev --prefix /app/backend"]
 
7
  # Create a directory for the application
8
  WORKDIR /app
9
 
10
+ # Copy package.json and package-lock.json for both frontend and backend
11
  COPY frontend/package*.json ./frontend/
12
  COPY backend/package*.json ./backend/
13
 
 
23
  WORKDIR /app
24
  COPY . .
25
 
26
+ # Ensure correct permissions for frontend and backend files
27
+ RUN chmod -R 755 /app/frontend /app/backend /app/backend/engine
28
 
29
  # Expose the ports
30
  EXPOSE 5173
 
32
 
33
  # Define the command to run the apps using nodemon
34
  CMD ["sh", "-c", "nodemon --watch /app/frontend --exec 'npm run dev --prefix /app/frontend' & nodemon --watch /app/backend --exec 'npm run dev --prefix /app/backend'"]