Skip to content

Commit

Permalink
Use fly-native swap file
Browse files Browse the repository at this point in the history
  • Loading branch information
Erisa committed Jun 6, 2024
1 parent c2c4086 commit 3ac0daf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ COPY --from=build /inst /usr/local
WORKDIR /modmailbot
COPY . /modmailbot

COPY ./entrypoint.sh /
ENTRYPOINT [ "/entrypoint.sh" ]
CMD ["python", "bot.py"]
4 changes: 0 additions & 4 deletions entrypoint.sh

This file was deleted.

8 changes: 5 additions & 3 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ primary_region = "iad"
kill_signal = "SIGINT"
kill_timeout = "5s"

swap_size_mb = 512

[[vm]]
size = "shared-cpu-1x"

[experimental]
auto_rollback = true

[deploy]
strategy = "rolling"

[env]
SWAP = "true"

0 comments on commit 3ac0daf

Please sign in to comment.