Remove .env files copy
Some checks failed
Build Feedmee Next.js Frontend App / build-and-push (push) Failing after 3m8s

This commit is contained in:
2025-10-16 14:16:12 +02:00
parent 605dc7dd46
commit 372adaa8cf

View File

@@ -24,8 +24,7 @@ FROM base AS builder
WORKDIR /app WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
# This will do the trick, use the corresponding env file for each environment.
COPY .env.production.sample .env.production
RUN npm run build RUN npm run build
# 3. Production image, copy all the files and run next # 3. Production image, copy all the files and run next