From 8ea9a926c815cf95e92f1461f6eb72986230bf6e Mon Sep 17 00:00:00 2001 From: kenneth Date: Sun, 8 Mar 2026 01:24:50 +0000 Subject: [PATCH] build[waitlist]: add fly.io config --- apps/waitlist-website/Dockerfile | 16 ++++++++-------- apps/waitlist-website/fly.toml | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 apps/waitlist-website/fly.toml diff --git a/apps/waitlist-website/Dockerfile b/apps/waitlist-website/Dockerfile index 207bf93..6b10d00 100644 --- a/apps/waitlist-website/Dockerfile +++ b/apps/waitlist-website/Dockerfile @@ -1,21 +1,21 @@ -FROM node:20-alpine AS development-dependencies-env +FROM oven/bun:1 AS development-dependencies-env COPY . /app WORKDIR /app -RUN npm ci +RUN bun install -FROM node:20-alpine AS production-dependencies-env -COPY ./package.json package-lock.json /app/ +FROM oven/bun:1 AS production-dependencies-env +COPY ./package.json /app/ WORKDIR /app -RUN npm ci --omit=dev +RUN bun install --production -FROM node:20-alpine AS build-env +FROM oven/bun:1 AS build-env COPY . /app/ COPY --from=development-dependencies-env /app/node_modules /app/node_modules WORKDIR /app -RUN npm run build +RUN bun run build FROM node:20-alpine -COPY ./package.json package-lock.json /app/ +COPY ./package.json /app/ COPY --from=production-dependencies-env /app/node_modules /app/node_modules COPY --from=build-env /app/build /app/build WORKDIR /app diff --git a/apps/waitlist-website/fly.toml b/apps/waitlist-website/fly.toml new file mode 100644 index 0000000..ed2d895 --- /dev/null +++ b/apps/waitlist-website/fly.toml @@ -0,0 +1,22 @@ +# fly.toml app configuration file generated for aelis-waitlist-website on 2026-03-08T01:11:12Z +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = 'aelis-waitlist-website' +primary_region = 'lhr' + +[build] + +[http_service] + internal_port = 3000 + force_https = true + auto_stop_machines = 'stop' + auto_start_machines = true + min_machines_running = 0 + processes = ['app'] + +[[vm]] + memory = '1gb' + cpus = 1 + memory_mb = 1024