Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# dev image is used for development purposes
FROM oven/bun:1.2.22-alpine AS dev
FROM oven/bun:1.3.8-alpine AS dev
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/bun"]

# --- Installer (shared dependencies) ---
FROM --platform=$BUILDPLATFORM oven/bun:1.2.22-alpine AS installer
FROM --platform=$BUILDPLATFORM oven/bun:1.3.8-alpine AS installer
WORKDIR /app
COPY package.json bun.lock svelte.config.js vite.config.ts tsconfig.json /app/
RUN --mount=type=cache,target=/root/.bun/install/cache bun install --omit=peer --frozen-lockfile

# --- Server Builder ---
FROM --platform=$BUILDPLATFORM oven/bun:1.2.22-alpine AS builder-server
FROM --platform=$BUILDPLATFORM oven/bun:1.3.8-alpine AS builder-server
WORKDIR /app
COPY svelte.config.js vite.config.ts tsconfig.json package.json /app/
COPY static /app/static
Expand All @@ -23,7 +23,7 @@ RUN mkdir -p /app/build && \
echo "$timestamp" > /app/build/BUILD_TIME

# --- Worker Builder ---
FROM --platform=$BUILDPLATFORM oven/bun:1.2.22-alpine AS builder-worker
FROM --platform=$BUILDPLATFORM oven/bun:1.3.8-alpine AS builder-worker
WORKDIR /app
COPY svelte.config.js vite.config.ts tsconfig.json package.json /app/
COPY drizzle /app/drizzle/
Expand All @@ -38,7 +38,7 @@ RUN mkdir -p /app/build && \
echo "$timestamp" > /app/build/BUILD_TIME

# --- Server Release ---
FROM oven/bun:1.2.22-alpine AS feedfathom-server
FROM oven/bun:1.3.8-alpine AS feedfathom-server
WORKDIR /app
RUN apk add --no-cache curl
USER 1000:1000
Expand All @@ -47,7 +47,7 @@ COPY --from=builder-server /app/build/ /app/
ENTRYPOINT ["/usr/local/bin/bun"]
CMD ["index.js"]
# --- Worker Release ---
FROM oven/bun:1.2.22-alpine AS feedfathom-worker
FROM oven/bun:1.3.8-alpine AS feedfathom-worker
WORKDIR /app
RUN apk add --no-cache curl
USER 1000:1000
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down
Loading
Loading