diff --git a/Dockerfile b/Dockerfile index 48c3a9d..db33a92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,15 +9,15 @@ COPY package.json ./ COPY package-lock.json ./ RUN npm ci --production --silent && npm cache clean --force -# Copy the rest of the files -COPY . . +# Copy only necessary files for production +COPY .next ./.next +COPY public ./public +COPY config.json ./ +COPY next.config.js ./ # Opt out of Next.js telemetry RUN npx next telemetry disable -# Build the app -#RUN npm run build - # Expose port 3000 EXPOSE 3000