fix(repo): shoud be fixed now
This commit is contained in:
parent
5eb64cf775
commit
5d0d88c535
26 changed files with 87 additions and 496 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue