From 684bf8c0ed82784fe1495600211314fcd7e421eb Mon Sep 17 00:00:00 2001 From: Eduard Prigoana Date: Tue, 27 Jan 2026 23:19:45 +0200 Subject: [PATCH] Add Dockerfile for Bun canary on Alpine --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6fb65fa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +# Use Bun canary on Alpine +FROM oven/bun:canary-alpine + +# Set working directory +WORKDIR /app + +# Copy package files first for caching +COPY package.json bun.lockb ./ + +# Install all dependencies (including devDeps) +RUN bun install + +# Copy the rest of the project +COPY . . + +# Build the project +RUN bun run build + +# Remove devDependencies to shrink image +RUN bun prune --prod + +# Expose Vite preview port +EXPOSE 4173 + +# Run the built project +CMD ["bun", "run", "preview"]