New files from Fly.io Launch

This commit is contained in:
Fly.io
2025-05-09 14:21:38 +00:00
parent 83a985c536
commit 55c0896ded
2 changed files with 42 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
ARG GO_VERSION=1
FROM golang:${GO_VERSION}-bookworm as builder
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN go build -v -o /run-app .
FROM debian:bookworm
COPY --from=builder /run-app /usr/local/bin/
CMD ["run-app"]

28
fly.toml Normal file
View File

@@ -0,0 +1,28 @@
# fly.toml app configuration file generated for grandrisingapi on 2025-05-09T14:19:03Z
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = 'grandrisingapi'
primary_region = 'bos'
[build]
[build.args]
GO_VERSION = '1.24.0'
[env]
PORT = '8080'
[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