try
Some checks failed
Build and Release to Staging / Build Vision Start (push) Successful in 11s
Build and Release to Staging / Build Vision Start Image (push) Failing after 3m29s
Build and Release to Staging / Deploy Vision Start (staging) (push) Has been skipped

This commit is contained in:
2026-03-21 00:16:32 -03:00
parent aec7a331c6
commit d067e0b95c

View File

@@ -1,34 +1,14 @@
FROM node:22-alpine AS builder FROM node:22-alpine AS builder
# Set working directory
WORKDIR /app WORKDIR /app
# Copy package.json and package-lock.json (if available)
COPY package*.json ./ COPY package*.json ./
RUN npm ci
# Install dependencies
RUN npm install
# Copy the rest of the application
COPY . . COPY . .
# Run prepare scripts to fetch required assets
RUN sh scripts/prepare_release.sh RUN sh scripts/prepare_release.sh
# Build the application
RUN npm run build RUN npm run build
# Production stage
FROM nginx:alpine FROM nginx:alpine
# Copy the built application from the builder stage
COPY --from=builder /app/dist /usr/share/nginx/html COPY --from=builder /app/dist /usr/share/nginx/html
# Copy the manifest.json
COPY manifest.json /usr/share/nginx/html/ COPY manifest.json /usr/share/nginx/html/
# Expose port 80
EXPOSE 80 EXPOSE 80
# Start Nginx
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]