From 1b4cedd8575907147e3841ea55040d5b53b8f5e1 Mon Sep 17 00:00:00 2001 From: MapleLeaf <19603573+itsMapleLeaf@users.noreply.github.com> Date: Wed, 29 Dec 2021 14:36:54 -0600 Subject: [PATCH] add fly deploy --- .dockerignore | 5 +++++ Dockerfile | 13 +++++++++++++ fly.toml | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 fly.toml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6273f36 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +**/node_modules/** +**/.cache/** +**/build/** +**/dist/** +.env diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..312471c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:lts-slim + +WORKDIR /app + +COPY / ./ +RUN ls -R + +RUN npm install -g pnpm +RUN pnpm install --unsafe-perm --frozen-lockfile + +RUN pnpm -C packages/docs build + +CMD [ "pnpm", "-C", "packages/docs", "start" ] diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..700165f --- /dev/null +++ b/fly.toml @@ -0,0 +1,40 @@ +# fly.toml file generated for reacord on 2021-12-29T14:06:41-06:00 + +app = "reacord" + +kill_signal = "SIGINT" +kill_timeout = 5 +processes = [] + +[env] +PORT = 8080 + +[experimental] +allowed_public_ports = [] +auto_rollback = true + +[[services]] +http_checks = [] +internal_port = 8080 +processes = ["app"] +protocol = "tcp" +script_checks = [] + +[services.concurrency] +hard_limit = 25 +soft_limit = 20 +type = "connections" + +[[services.ports]] +handlers = ["http"] +port = 80 + +[[services.ports]] +handlers = ["tls", "http"] +port = 443 + +[[services.tcp_checks]] +grace_period = "1s" +interval = "15s" +restart_limit = 0 +timeout = "2s"