diff --git a/Dockerfile b/Dockerfile index 6371b90..a322c1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,11 +11,11 @@ COPY yarn.lock ./ RUN yarn install --frozen-lockfile -COPY client ./client/ -COPY helpers ./helpers/ -COPY pages ./pages/ -COPY public ./public/ -COPY server ./server/ +COPY client ./client +COPY helpers ./helpers +COPY pages ./pages +COPY public ./public +COPY server ./server COPY ./tsconfig*.json ./ COPY ./.babelrc ./ @@ -44,7 +44,8 @@ RUN yarn install --prod --frozen-lockfile COPY --from=build /app/dist ./dist COPY --from=build /app/.next ./.next -COPY --from=build /app/public ./public +COPY public ./public +COPY server/config/next.config.js ./dist/server/config/next.config.js COPY entrypoint.sh ./ RUN chmod +x ./entrypoint.sh diff --git a/docker-compose.yml b/docker-compose.yml index a241abd..e688fee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: '3' services: bundle_app: @@ -7,6 +7,8 @@ services: container_name: bundle_app restart: unless-stopped env_file: ./.env + environment: + NEXT_CONFIG_PATH: dist/server/config/next.config.js ports: - ${PORT}:${PORT} expose: