diff --git a/.dockerignore b/.dockerignore index 31d8fa2..61c7cf9 100644 --- a/.dockerignore +++ b/.dockerignore @@ -21,5 +21,6 @@ **/secrets.dev.yaml **/values.dev.yaml **/media +**/.gitea LICENSE README.md diff --git a/Dockerfile b/Dockerfile index db33a92..d362b4e 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 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 +# Copy the rest of the files +COPY . . + +# Remove development dependencies +RUN npm prune --production + # Expose port 3000 EXPOSE 3000