Skip to content

Instantly share code, notes, and snippets.

View Simon-Bertram's full-sized avatar

Simon Bertram Simon-Bertram

View GitHub Profile
@Simon-Bertram
Simon-Bertram / Dockerfile
Last active May 7, 2026 10:10
Dockerfile for Cornwall Ponds site
# --- STAGE 1: BASE ---
# Setup OS and Package Manager (pnpm)
FROM mcr.microsoft.com/devcontainers/javascript-node:24-bookworm AS base
# Install system deps for native modules (sharp, etc.)
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y --no-install-recommends \
git curl ca-certificates openssl bash-completion \
@Simon-Bertram
Simon-Bertram / devcontainer.json
Last active May 7, 2026 11:00
Improved (7th May 2026) devcontainer.json for Cornwall Ponds site
{
"name": "cornwall-ponds-dev",
"build": { "dockerfile": "Dockerfile", "context": "..", "target": "dev" },
"remoteUser": "node",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"containerEnv": {
// Alchemy + Wrangler: Cloudflare API (set on the host or in CI)
"CLOUDFLARE_ACCOUNT_ID": "${localEnv:CLOUDFLARE_ACCOUNT_ID}",
@Simon-Bertram
Simon-Bertram / .dockerignore
Created May 7, 2026 07:35
dockerignore for the better-t-stack Astro, Hono, oRPC, Better-auth, pnpm
# --- Dependency directories (Let Docker install these fresh) ---
node_modules
**/node_modules
.pnpm-store
# --- Build outputs & Tooling Caches ---
dist
.next
.turbo
.turbo/cache