build and use dist
Some checks failed
gds-mock-mcp Docker Build / build (push) Has been cancelled

This commit is contained in:
2026-04-12 00:50:09 -05:00
parent d4bcb045d8
commit aac41d9e8f
2 changed files with 9 additions and 1 deletions

View File

@@ -12,6 +12,12 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run build --if-present
- name: Installs QEMU binaries for multi-platform emulation. - name: Installs QEMU binaries for multi-platform emulation.
uses: docker/setup-qemu-action@v4 uses: docker/setup-qemu-action@v4
- name: Generates image tags and annotations from Git information. - name: Generates image tags and annotations from Git information.

View File

@@ -6,8 +6,10 @@ WORKDIR /app
# Copy package files # Copy package files
COPY package*.json ./ COPY package*.json ./
# Install dependencies # Install dependencies and build dist
RUN npm ci --only=production RUN npm ci --only=production
RUN npm run build --if-present
# Stage 2: Production # Stage 2: Production
FROM node:20-alpine FROM node:20-alpine