Remove .env files copy
Some checks failed
Build Feedmee Next.js Frontend App / build-and-push (push) Failing after 3m8s
Some checks failed
Build Feedmee Next.js Frontend App / build-and-push (push) Failing after 3m8s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user