diff --git a/Dockerfile b/Dockerfile index fab8e19d7..7edcc9d57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ FROM node:alpine AS builder WORKDIR /app COPY . . COPY --from=deps /app/node_modules ./node_modules +COPY --from=deps /app/next.config.js ./next.config.js RUN yarn build && yarn install --production --ignore-scripts --prefer-offline # Production image, copy all the files and run next diff --git a/next.config.js b/next.config.js index d9c955164..90af9bc8b 100644 --- a/next.config.js +++ b/next.config.js @@ -16,7 +16,11 @@ module.exports = withCommerceConfig({ webpack5: true, }, images: { - domains: ['s3-eu-west-1.amazonaws.com'] + domains: [ + 'localhost', + '206.189.135.123', + 's3-eu-west-1.amazonaws.com' + ] }, commerce, i18n: {