New files from Fly.io Launch
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
28
fly.toml
Normal 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
|
||||||
Reference in New Issue
Block a user