diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..877dfd7 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/devenv.nix b/devenv.nix index e61dd5c..d2c5d15 100644 --- a/devenv.nix +++ b/devenv.nix @@ -1,7 +1,7 @@ { pkgs, ... }: { - packages = with pkgs; [ git go gopls delve ]; + packages = with pkgs; [ git go gopls delve flyctl ]; scripts.start.exec = "go run main.go"; } diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..9c17e47 --- /dev/null +++ b/fly.toml @@ -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'