Refactor core services and components to prevent runtime errors on web platforms and optimize build environment. - Update `Dockerfile.web` to use Node 25 for the build stage. - Implement lazy loading for `expo-media-library` and `expo-file-system` in `ImageGallery` to prevent crashes on web where these native modules are unavailable. - Refactor `CallKeepServiceImpl` to use dynamic imports for `expo-callkit-telecom`, ensuring the service remains compatible with web environments.
17 lines
302 B
Docker
17 lines
302 B
Docker
FROM node:25-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npx expo export --platform web --output-dir dist-web
|
|
|
|
FROM nginx:1.27-alpine
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=builder /app/dist-web /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|