Spaces:
Build error
Build error
Mohammad Shahid commited on
Commit ·
38c09f6
1
Parent(s): b32e0ee
Fix: Update Dockerfile to build application from source and adjust Firebase Storage stub return type
Browse files
Dockerfile
CHANGED
|
@@ -23,7 +23,9 @@ WORKDIR /app
|
|
| 23 |
COPY package.json package-lock.json ./
|
| 24 |
RUN npm ci
|
| 25 |
|
| 26 |
-
COPY
|
|
|
|
|
|
|
| 27 |
COPY public ./public
|
| 28 |
COPY licensed ./licensed
|
| 29 |
|
|
|
|
| 23 |
COPY package.json package-lock.json ./
|
| 24 |
RUN npm ci
|
| 25 |
|
| 26 |
+
COPY . .
|
| 27 |
+
RUN npm run build
|
| 28 |
+
|
| 29 |
COPY public ./public
|
| 30 |
COPY licensed ./licensed
|
| 31 |
|
src/shared/services/firebase-storage-bucket.ts
CHANGED
|
@@ -5,7 +5,7 @@ export class FirebaseStorageBucketControl {
|
|
| 5 |
return '';
|
| 6 |
}
|
| 7 |
|
| 8 |
-
static async download(path: string): Promise<
|
| 9 |
// Stub implementation
|
| 10 |
return null;
|
| 11 |
}
|
|
|
|
| 5 |
return '';
|
| 6 |
}
|
| 7 |
|
| 8 |
+
static async download(path: string): Promise<ArrayBuffer | null> {
|
| 9 |
// Stub implementation
|
| 10 |
return null;
|
| 11 |
}
|