Skip to content

Commit

Permalink
fix(flyio): dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Dec 28, 2023
1 parent f907523 commit 063f42d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ FROM alpine AS bin

COPY --from=builder /app/woom /usr/bin/woom

EXPOSE 8080/tcp

CMD ["-migrate"]
EXPOSE 4000/tcp

ENTRYPOINT ["/usr/bin/woom"]
21 changes: 13 additions & 8 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# fly.toml app configuration file generated for woom on 2023-10-25T15:11:35+08:00
# fly.toml app configuration file generated for woom on 2023-12-28T13:41:13+08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
Expand All @@ -9,12 +9,17 @@ primary_region = "nrt"
[build]

[http_service]
internal_port = 4000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
internal_port = 4000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]

[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 1024

[env]
LIVE777_URL = "http://live777.binbat.com:7777"
LIVE777_URL = "http://live777.binbat.com:7777"

0 comments on commit 063f42d

Please sign in to comment.