update bug fix

This commit is contained in:
2025-02-10 15:27:39 +01:00
parent 18e2268e0e
commit 82953ea1b3
2 changed files with 25 additions and 17 deletions

View File

@@ -1,21 +1,26 @@
# Use Node.js LTS image as the base
FROM node:current-alpine
# Set working directory
WORKDIR /app
# npm Cache reinigen, npm aktualisieren und danach die Abhängigkeiten installieren
RUN npm cache clean --force
RUN npm install -g npm@latest
# Copy package.json and package-lock.json
COPY package*.json ./
RUN npm install --loglevel verbose || npm install --force
# Install dependencies
RUN npm install
# Copy the application code
COPY . .
# Build the Next.js application
RUN npm run build
# Set environmental variable for production mode
ENV NODE_ENV=production
# Expose the port the app runs on
EXPOSE 3000
# Run the app with the start script
CMD ["npm", "start"]