summaryrefslogtreecommitdiff
path: root/backend/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'backend/Dockerfile')
-rw-r--r--backend/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/Dockerfile b/backend/Dockerfile
index 6775ba5..17fdda8 100644
--- a/backend/Dockerfile
+++ b/backend/Dockerfile
@@ -10,8 +10,8 @@ RUN npm install
COPY . .
-# Build the project (if using TypeScript)
-RUN npm run build
+# Build only when TypeScript sources exist
+RUN if [ -d "src" ]; then npm run build; else echo "Skipping build: no src/ directory"; fi
# Expose port
EXPOSE 9000