New files from Fly.io Launch

This commit is contained in:
Fly.io
2025-12-30 03:26:34 +00:00
parent 1a7ed41d84
commit 85824a5491
2 changed files with 44 additions and 0 deletions

21
Dockerfile Executable file
View File

@@ -0,0 +1,21 @@
FROM node:20-bookworm-slim
# Install native deps required for HEIC → JPEG
RUN apt-get update && apt-get install -y \
libheif1 libheif-dev \
libvips libvips-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
# Install node deps
COPY package.json package-lock.json* ./
RUN npm ci || npm install
# Copy app code
COPY server.js ./
ENV PORT=8080
EXPOSE 8080
CMD ["node", "server.js"]

23
fly.toml Normal file
View File

@@ -0,0 +1,23 @@
# fly.toml app configuration file generated for postconvert on 2025-12-30T03:26:30Z
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'postconvert'
primary_region = 'sjc'
[build]
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 0
processes = ['app']
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
memory_mb = 1024