Skip to content

Commit

Permalink
fix: delete the dependency of local node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyp3Boy committed Oct 9, 2024
1 parent b54c22e commit 08146d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ yarn-error.*

# typescript
*.tsbuildinfo

# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
# The following patterns were generated by expo-cli

expo-env.d.ts
# @end expo-cli
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ services:
- "8081:8081" # Puerto configurado en el archivo .env
volumes:
- .:/frontend # Monta el código fuente local en el contenedor
command: npx expo start # Comando para iniciar el backend en modo de desarrollo (con hot reload)
- /frontend/node_modules # Monta node_modules como un volumen separado
command: npx expo start # Comando para iniciar el frontend
2 changes: 1 addition & 1 deletion dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /frontend
# Install app dependencies
COPY package*.json ./

RUN npm install
RUN npm install .

# Bundle app source
COPY . .
Expand Down

0 comments on commit 08146d9

Please sign in to comment.