Frontend CI / build-and-check (push) Failing after 20s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 4s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 4s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 22s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 3s
20 lines
365 B
Docker
20 lines
365 B
Docker
FROM node:24-slim AS base
|
|
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
RUN corepack enable
|
|
|
|
FROM base AS build
|
|
|
|
WORKDIR /app
|
|
COPY pnpm-lock.yaml ./
|
|
RUN pnpm fetch
|
|
|
|
COPY . ./
|
|
RUN pnpm install --offline --frozen-lockfile
|
|
RUN pnpm run build
|
|
|
|
FROM nginx:1.31-alpine
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|