mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 00:51:20 +00:00
build[waitlist]: add fly.io config
This commit is contained in:
@@ -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
|
||||
|
||||
22
apps/waitlist-website/fly.toml
Normal file
22
apps/waitlist-website/fly.toml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user