From 13dd1a72eafa58a6011ef9c08f4f0d6abbe0b4e1 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Sun, 28 Mar 2021 21:38:52 +0300 Subject: [PATCH] fix sitemap build --- Dockerfile | 4 ++-- Dockerfile.prod | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a2e0dbb..00b848e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM node:14-alpine as builder COPY package.json package-lock.json ./ RUN npm install -COPY tsconfig.json next-env.d.ts .babelrc next.config.js ./ +COPY tsconfig.json next-env.d.ts .babelrc next.config.js next-sitemap.js ./ COPY src src/ COPY public public/ COPY types types/ @@ -15,7 +15,7 @@ RUN npm run build FROM node:14-alpine as server WORKDIR /www -COPY package.json package-lock.json next.config.js ./ +COPY package.json package-lock.json next.config.js next-sitemap.js ./ COPY --from=builder .next .next COPY --from=builder node_modules node_modules COPY --from=builder public public diff --git a/Dockerfile.prod b/Dockerfile.prod index ceba872..5367289 100644 --- a/Dockerfile.prod +++ b/Dockerfile.prod @@ -3,7 +3,7 @@ FROM node:14-alpine as builder COPY package.json package-lock.json ./ RUN npm install -COPY tsconfig.json next-env.d.ts .babelrc next.config.js ./ +COPY tsconfig.json next-env.d.ts .babelrc next.config.js next-sitemap.js ./ COPY src src/ COPY public public/ COPY types types/ @@ -15,7 +15,7 @@ RUN npm run build FROM node:14-alpine as server WORKDIR /www -COPY package.json package-lock.json next.config.js ./ +COPY package.json package-lock.json next.config.js next-sitemap.js ./ COPY --from=builder .next .next COPY --from=builder node_modules node_modules COPY --from=builder public public