This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user