fix(linktree&backend): correct path, split work docker
This commit is contained in:
+25
-4
@@ -1,9 +1,30 @@
|
||||
FROM oven/bun:latest
|
||||
|
||||
# Stage 1: Install dependencies
|
||||
FROM oven/bun:alpine AS deps
|
||||
WORKDIR /app
|
||||
COPY package.json ./
|
||||
RUN bun install
|
||||
# Copy only package files to leverage Docker layer caching
|
||||
COPY package.json bun.lock ./
|
||||
# Install dependencies
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
# Stage 2: Build the application
|
||||
FROM oven/bun:alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
# Build Next.js
|
||||
RUN bun run build
|
||||
|
||||
# Stage 3: Production runner
|
||||
FROM oven/bun:alpine AS runner
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# Copy built assets and dependencies from builder stage
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/.next ./.next
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/package.json ./package.json
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["bun", "start"]
|
||||
+2
-2
@@ -53,8 +53,8 @@ export default async function Home() {
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
|
||||
/>
|
||||
<video className="fixed top-0 left-0 w-full h-full -z-10 object-cover" autoPlay muted loop playsInline preload="none">
|
||||
<source src="/erika.mp4" media="(min-width: 768px)"></source>
|
||||
<source src="/erika-mb.mp4" media="(max-width: 767px)"></source>
|
||||
<source src="/background/erika.mp4" media="(min-width: 768px)"></source>
|
||||
<source src="/background/erika-mb.mp4" media="(max-width: 767px)"></source>
|
||||
</video>
|
||||
<Card className="w-full max-w-sm overflow-hidden relative bg-transparent border-0 backdrop-blur-md md:backdrop-blur-none md:bg-card md:border md:max-w-lg" role="article">
|
||||
<CardHeader className="flex flex-col items-center gap-4 text-center">
|
||||
|
||||
Reference in New Issue
Block a user