attempt 3
All checks were successful
Publish Docker Image / docker (push) Successful in 3m44s

This commit is contained in:
Lee 2023-07-12 11:30:38 +01:00
parent 56ebc94673
commit c5dfa63e1a
2 changed files with 7 additions and 6 deletions

@ -21,5 +21,6 @@
**/secrets.dev.yaml
**/values.dev.yaml
**/media
**/.gitea
LICENSE
README.md

@ -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