Paweł Malicki 1 year ago
parent
commit
4539e21e13
2 changed files with 12 additions and 4 deletions
  1. 10 2
      frontend/Dockerfile
  2. 2 2
      frontend/package.json

+ 10 - 2
frontend/Dockerfile

@@ -1,11 +1,19 @@
+# Dockerfile for frontend
+
 FROM node:16
 
 WORKDIR /app
 
-COPY package*.json ./
+# Copy package files first to install dependencies
+COPY package.json package-lock.json ./
 RUN npm install
 
+# Install Expo CLI globally
+RUN npm install -g expo-cli
+
+# Copy the rest of the application files
 COPY . .
 
 EXPOSE 8081
-CMD ["npm", "start"]
+
+CMD ["expo-cli", "start", "--tunnel"]

+ 2 - 2
frontend/package.json

@@ -7,10 +7,10 @@
     "start": "npx expo start"
   },
   "dependencies": {
-    "@react-native-async-storage/async-storage": "^1.15.9",
+    "@react-native-async-storage/async-storage": "1.17.11",
     "expo": "^48.0.0",
     "react": "18.2.0",
-    "react-native": "0.71.0",
+    "react-native": "0.71.14",
     "react-native-checkbox": "^2.0.0"
   }
 }