From 6495db7588657f258f04a4c19a92b6a0d7703ee7 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 22 Oct 2024 18:36:48 +0100 Subject: [PATCH] meh --- projects/backend/Dockerfile | 6 +++--- projects/website/Dockerfile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/backend/Dockerfile b/projects/backend/Dockerfile index cba4eff..5214223 100644 --- a/projects/backend/Dockerfile +++ b/projects/backend/Dockerfile @@ -3,7 +3,7 @@ FROM oven/bun:1.1.31-alpine AS base # Install dependencies FROM base AS depends WORKDIR /app -COPY package.json bun.lockb* ./ +COPY . . RUN bun install --frozen-lockfile # Run the app @@ -17,12 +17,12 @@ COPY --from=depends /app/package.json* /app/bun.lockb* ./ COPY --from=depends /app/node_modules ./node_modules # Build the common library -COPY projects/common ./projects/common +COPY --from=depends /app/projects/common ./projects/common RUN bun i -g typescript RUN bun --filter '@ssr/common' build # Copy the backend project -COPY projects/backend ./projects/backend +COPY --from=depends /app/projects/backend ./projects/backend # Lint before starting RUN bun --filter 'backend' lint diff --git a/projects/website/Dockerfile b/projects/website/Dockerfile index c45433c..b4322c5 100644 --- a/projects/website/Dockerfile +++ b/projects/website/Dockerfile @@ -3,7 +3,7 @@ FROM oven/bun:1.1.31-alpine AS base # Install dependencies FROM base AS depends WORKDIR /app -COPY package.json bun.lockb* ./ +COPY . . RUN bun install --frozen-lockfile # Run the app @@ -20,12 +20,12 @@ COPY --from=depends /app/package.json* /app/bun.lockb* ./ COPY --from=depends /app/node_modules ./node_modules # Build the common library -COPY projects/common ./projects/common +COPY --from=depends /app/projects/common ./projects/common RUN bun i -g typescript RUN bun --filter '@ssr/common' build # Copy the website project -COPY projects/website ./projects/website +COPY --from=depends /app/projects/website ./projects/website # Build the website RUN bun run --filter website build