misc: 🚢
This commit is contained in:
parent
5d2ec9b3a1
commit
61d478d576
3 changed files with 28 additions and 1 deletions
7
Dockerfile
Normal file
7
Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
FROM golang:1.22
|
||||||
|
|
||||||
|
COPY go.mod go.mod
|
||||||
|
COPY *.go ./
|
||||||
|
RUN go build -o /usr/local/bin/stormlight-tracker
|
||||||
|
|
||||||
|
CMD ["stormlight-tracker"]
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
packages = with pkgs; [ git go gopls delve ];
|
packages = with pkgs; [ git go gopls delve flyctl ];
|
||||||
|
|
||||||
scripts.start.exec = "go run main.go";
|
scripts.start.exec = "go run main.go";
|
||||||
}
|
}
|
||||||
|
|
20
fly.toml
Normal file
20
fly.toml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# fly.toml app configuration file generated for stormlight-tracker on 2024-05-14T21:51:00-04:00
|
||||||
|
#
|
||||||
|
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
|
||||||
|
#
|
||||||
|
|
||||||
|
app = 'stormlight-tracker'
|
||||||
|
primary_region = 'iad'
|
||||||
|
|
||||||
|
[build]
|
||||||
|
|
||||||
|
[http_service]
|
||||||
|
internal_port = 8080
|
||||||
|
force_https = true
|
||||||
|
auto_stop_machines = true
|
||||||
|
auto_start_machines = true
|
||||||
|
min_machines_running = 0
|
||||||
|
processes = ['app']
|
||||||
|
|
||||||
|
[[vm]]
|
||||||
|
size = 'shared-cpu-1x'
|
Loading…
Reference in a new issue