π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: docker file corrections
DarkPhoenix2704acfb10f58697
diff --git a/packages/nocodb/Dockerfile b/packages/nocodb/Dockerfileindex 10681df791..923e50d332 100644--- a/packages/nocodb/Dockerfile+++ b/packages/nocodb/Dockerfile@@ -83,7 +83,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-insfontconfig \fonts-dejavu-core \fonts-liberation \- libreoffice \+ libreoffice \ `#required for thumbnail generation`\wget `# for convenience of downstream users` \&& curl -L "https://github.com/TomWright/dasel/releases/download/v2.8.1/dasel_linux_$(dpkg --print-architecture)" -o /usr/local/bin/dasel \&& chmod +x /usr/local/bin/dasel \diff --git a/packages/nocodb/Dockerfile.local b/packages/nocodb/Dockerfile.localindex 2f8b956527..a9ecae5279 100644--- a/packages/nocodb/Dockerfile.local+++ b/packages/nocodb/Dockerfile.local@@ -55,11 +55,11 @@ RUN apk add --update --no-cache \dumb-init \fontconfig \jq \- libreoffice \+ libreoffice \ `#required for thumbnail generation`\nodejs \- ttf-dejavu \- ttf-liberation && \- fc-cache -f -v+ ttf-dejavu \ `#required for thumbnail generation`\+ ttf-liberation && \ `#required for thumbnail generation`\+ fc-cache -f -v `#required for thumbnail generation`\# Set proper permissionsRUN chown -R nocodb:nocodb /usr/src/appdiff --git a/packages/nocodb/src/utils/attachmentUtils.ts b/packages/nocodb/src/utils/attachmentUtils.tsindex b816f558f1..fcb1d90436 100644--- a/packages/nocodb/src/utils/attachmentUtils.ts+++ b/packages/nocodb/src/utils/attachmentUtils.ts@@ -1,3 +1,5 @@+import path from 'path';+/*** Checks if a file is an Office document based on MIME type and file extension* @param mimeType - The MIME type of the file@@ -128,7 +130,7 @@ export function isOfficeDocument(];// Normalize file extension to lowercase and ensure it starts with a dot- const normalizedExtension = fileExtension.toLowerCase().startsWith('.')+ const normalizedExtension = fileExtension.startsWith('.')? fileExtension.toLowerCase(): `.${fileExtension.toLowerCase()}`;@@ -144,9 +146,7 @@ export const supportsThumbnails = (attachment: any) => {attachment.title || attachment.filename || attachment.name || '';// Extract file extension from filename- const fileExtension = filename.includes('.')- ? filename.substring(filename.lastIndexOf('.'))- : '';+ const fileExtension = path.extname(filename);return (mimetype?.startsWith('image/') ||