fix(repo): shoud be fixed now

This commit is contained in:
devaine 2025-10-18 17:21:36 -05:00
commit 5d0d88c535
No known key found for this signature in database
GPG key ID: 4BA6E50E8768348F
26 changed files with 87 additions and 496 deletions

View file

@ -1,22 +1,15 @@
# web-app/Dockerfile
FROM node:20-alpine
FROM node:23-alpine
WORKDIR /app
COPY . /codered-astra
# Copy package files first to leverage Docker's build cache
COPY package*.json ./
WORKDIR /codered-astra
# Install dependencies
RUN npm ci --only=production=false
RUN npm i
# Copy the rest of your application code
COPY . .
# Build the React application
RUN npm run build
# Expose the port
EXPOSE 3000
# Use preview mode for production-like serving
CMD ["npm", "run", "preview"]
RUN npm run format
RUN npm run build
CMD ["npm", "run", "host"]