meh
This commit is contained in:
parent
c3ab9851ab
commit
6495db7588
@ -3,7 +3,7 @@ FROM oven/bun:1.1.31-alpine AS base
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
FROM base AS depends
|
FROM base AS depends
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json bun.lockb* ./
|
COPY . .
|
||||||
RUN bun install --frozen-lockfile
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
# Run the app
|
# Run the app
|
||||||
@ -17,12 +17,12 @@ COPY --from=depends /app/package.json* /app/bun.lockb* ./
|
|||||||
COPY --from=depends /app/node_modules ./node_modules
|
COPY --from=depends /app/node_modules ./node_modules
|
||||||
|
|
||||||
# Build the common library
|
# Build the common library
|
||||||
COPY projects/common ./projects/common
|
COPY --from=depends /app/projects/common ./projects/common
|
||||||
RUN bun i -g typescript
|
RUN bun i -g typescript
|
||||||
RUN bun --filter '@ssr/common' build
|
RUN bun --filter '@ssr/common' build
|
||||||
|
|
||||||
# Copy the backend project
|
# Copy the backend project
|
||||||
COPY projects/backend ./projects/backend
|
COPY --from=depends /app/projects/backend ./projects/backend
|
||||||
|
|
||||||
# Lint before starting
|
# Lint before starting
|
||||||
RUN bun --filter 'backend' lint
|
RUN bun --filter 'backend' lint
|
||||||
|
@ -3,7 +3,7 @@ FROM oven/bun:1.1.31-alpine AS base
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
FROM base AS depends
|
FROM base AS depends
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json bun.lockb* ./
|
COPY . .
|
||||||
RUN bun install --frozen-lockfile
|
RUN bun install --frozen-lockfile
|
||||||
|
|
||||||
# Run the app
|
# Run the app
|
||||||
@ -20,12 +20,12 @@ COPY --from=depends /app/package.json* /app/bun.lockb* ./
|
|||||||
COPY --from=depends /app/node_modules ./node_modules
|
COPY --from=depends /app/node_modules ./node_modules
|
||||||
|
|
||||||
# Build the common library
|
# Build the common library
|
||||||
COPY projects/common ./projects/common
|
COPY --from=depends /app/projects/common ./projects/common
|
||||||
RUN bun i -g typescript
|
RUN bun i -g typescript
|
||||||
RUN bun --filter '@ssr/common' build
|
RUN bun --filter '@ssr/common' build
|
||||||
|
|
||||||
# Copy the website project
|
# Copy the website project
|
||||||
COPY projects/website ./projects/website
|
COPY --from=depends /app/projects/website ./projects/website
|
||||||
|
|
||||||
# Build the website
|
# Build the website
|
||||||
RUN bun run --filter website build
|
RUN bun run --filter website build
|
||||||
|
Reference in New Issue
Block a user