start fixing website
Some checks failed
Deploy Backend / deploy (push) Successful in 35s
Deploy Frontend / deploy (push) Failing after 10s

This commit is contained in:
Lee 2024-10-04 21:07:09 +01:00
parent 7e6c706369
commit 287912bd81

@ -1,5 +1,8 @@
# Base image with Node.js 20 and pnpm FROM node:20-alpine3.17
FROM fascinated/docker-images:nodejs_20_with_pnpm AS base
# Install pnpm
RUN npm install -g pnpm
ENV PNPM_HOME=/usr/local/bin
# Install build tools for canvas (Python, GCC, etc.) # Install build tools for canvas (Python, GCC, etc.)
FROM base AS deps FROM base AS deps
@ -7,7 +10,7 @@ RUN apk add --no-cache python3 make g++ gcc pkgconfig pixman cairo-dev libjpeg-t
WORKDIR /app WORKDIR /app
# Copy website package and lock files only # Copy website package and lock files only
COPY package.json* /pnpm-lock.yaml* ./ COPY package.json* pnpm-lock.yaml* pnpm-workspace.yaml* ./
RUN pnpm install --frozen-lockfile --quiet --filter website RUN pnpm install --frozen-lockfile --quiet --filter website
# Build stage # Build stage
@ -17,7 +20,7 @@ WORKDIR /app
# Copy node_modules from deps stage # Copy node_modules from deps stage
COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/node_modules ./node_modules
COPY ./website ./website COPY website ./website
# Install runtime dependencies # Install runtime dependencies
RUN apk add --no-cache cairo pango libjpeg-turbo giflib RUN apk add --no-cache cairo pango libjpeg-turbo giflib