smaller docker image
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,23 +1,13 @@
|
||||
FROM oven/bun AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json bun.lock ./
|
||||
|
||||
RUN bun install
|
||||
COPY . .
|
||||
|
||||
|
||||
RUN bun run build
|
||||
|
||||
|
||||
|
||||
FROM oven/bun
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app ./
|
||||
|
||||
COPY --from=builder /app/build ./build
|
||||
EXPOSE 3000
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
CMD ["bun", "build/index.js"]
|
||||
CMD ["bun", "build/index.js"]
|
||||
@@ -2,7 +2,7 @@
|
||||
import { resolve } from '$app/paths';
|
||||
</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>
|
||||
</div>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
</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>
|
||||
<enhanced:img
|
||||
class="rounded-2xl"
|
||||
|
||||
Reference in New Issue
Block a user