From 56ebc946737d483daed7c0987895065eeedd8e18 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Wed, 12 Jul 2023 11:28:23 +0100 Subject: [PATCH] another attempt at making it smaller --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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