changing the way that pipelines work
This commit is contained in:
25
Dockerfile
25
Dockerfile
@@ -1,28 +1,7 @@
|
||||
FROM node:22-alpine AS builder
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json (if available)
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Run prepare scripts to fetch required assets
|
||||
RUN sh scripts/prepare_release.sh
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
# Production stage
|
||||
FROM nginx:alpine
|
||||
|
||||
# Copy the built application from the builder stage
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
# Copy the pre-built application
|
||||
COPY dist/ /usr/share/nginx/html/
|
||||
|
||||
# Copy the manifest.json
|
||||
COPY manifest.json /usr/share/nginx/html/
|
||||
|
||||
Reference in New Issue
Block a user