Deploy to fly.io

main
mat ess 2023-03-01 09:19:54 -05:00
parent 12c58fcec2
commit 46c5244c1f
3 changed files with 36 additions and 0 deletions

12
.dockerignore Normal file
View File

@ -0,0 +1,12 @@
/.direnv
/result
/target
/.pre-commit-config.yaml
.env
# Added by cargo
#
# already existing elements were commented out
#/target

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM rust:1.67 as builder
WORKDIR /usr/src/buscemi
COPY . .
RUN cargo install --path .
FROM debian:bullseye-slim
COPY --from=builder /usr/local/cargo/bin/buscemi /usr/local/bin/buscemi
CMD ["buscemi"]

16
fly.toml Normal file
View File

@ -0,0 +1,16 @@
# fly.toml file generated for buscemi on 2023-02-28T21:37:01-05:00
app = "buscemi"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
[experimental]
auto_rollback = true
[[services]]
internal_port = 8080
processes = ["app"]
protocol = "tcp"