smaller docker image
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,23 +1,13 @@
|
|||||||
FROM oven/bun AS builder
|
FROM oven/bun AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json bun.lock ./
|
COPY package.json bun.lock ./
|
||||||
|
|
||||||
RUN bun install
|
RUN bun install
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|
||||||
RUN bun run build
|
RUN bun run build
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FROM oven/bun
|
FROM oven/bun
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app ./
|
COPY --from=builder /app/build ./build
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
CMD ["bun", "build/index.js"]
|
CMD ["bun", "build/index.js"]
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
import { resolve } from '$app/paths';
|
import { resolve } from '$app/paths';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="text-center py-2 font-bold text-xl">
|
<div class="text-center py-2 font-bold text-xl underline">
|
||||||
<a href={resolve('/blog')}>Blog</a>
|
<a href={resolve('/blog')}>Blog</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pt-32 px-8">
|
<div class="pt-4 px-8">
|
||||||
<h1 class="font-black text-center text-4xl py-6">Stan Runge</h1>
|
<h1 class="font-black text-center text-4xl py-6">Stan Runge</h1>
|
||||||
<enhanced:img
|
<enhanced:img
|
||||||
class="rounded-2xl"
|
class="rounded-2xl"
|
||||||
|
|||||||
Reference in New Issue
Block a user