diff --git a/Dockerfile b/Dockerfile index 7933b982a..ab93c8af5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,12 +36,12 @@ ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_BUILD_OUTPUT_TYPE=standalone ENV NEXT_SHARP_PATH=/temp/node_modules/sharp -# Install NPM Globally and install sharp, NextJS image optimization -# The -p option in the mkdir command ignores the error if the directory already exists. -RUN npm i -g npm@latest && \ - mkdir -p /temp && cd /temp && \ - npm i sharp && \ - npm cache clean --force +RUN npm i -g npm@latest +# Install sharp, NextJS image optimization +RUN mkdir /temp && cd /temp && \ + npm i sharp + +RUN npm cache clean --force # Throw-away build stage to reduce size of final image FROM base AS build diff --git a/apps/web/app/[locale]/timesheet/[memberId]/page.tsx b/apps/web/app/[locale]/timesheet/[memberId]/page.tsx index 8e9c49fb4..f3b7df739 100644 --- a/apps/web/app/[locale]/timesheet/[memberId]/page.tsx +++ b/apps/web/app/[locale]/timesheet/[memberId]/page.tsx @@ -1,5 +1,4 @@ 'use client'; -/* eslint-disable react-hooks/exhaustive-deps */ import React, { useMemo, useState } from 'react'; import { useParams } from 'next/navigation'; import moment from 'moment';