Skip to content

Commit

Permalink
New files from Fly.io Launch
Browse files Browse the repository at this point in the history
  • Loading branch information
Fly.io committed Dec 23, 2024
1 parent 6aecb21 commit 02dab0d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 changes: 28 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# fly.toml app configuration file generated for incase on 2024-12-23T08:25:26Z
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'incase'
primary_region = 'ams'

[build]
[build.args]
GO_VERSION = '1.22'

[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

0 comments on commit 02dab0d

Please sign in to comment.