From 373f4352cbb42888dadaeead8562fa14c58169d9 Mon Sep 17 00:00:00 2001 From: khondokar Date: Thu, 22 Oct 2026 23:59:25 +0600 Subject: [PATCH] fix: create public directory and robots.txt for frontend docker build --- frontend/Dockerfile | 1 + frontend/public/robots.txt | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 frontend/public/robots.txt diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 4f3e108..5db45f2 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -6,6 +6,7 @@ COPY package.json package-lock.json* ./ RUN npm install COPY . . +RUN mkdir -p public RUN npm run build FROM node:20-alpine AS runner diff --git a/frontend/public/robots.txt b/frontend/public/robots.txt new file mode 100644 index 0000000..d346249 --- /dev/null +++ b/frontend/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /api/