Skip to content

Commit

Permalink
Remove docker-entrypoint and switch to native swap support in Fly.io
Browse files Browse the repository at this point in the history
  • Loading branch information
scottohara committed Jun 24, 2024
1 parent 0498487 commit af9697e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
8 changes: 0 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ RUN --mount=type=cache,id=loot-bundler,target=tmp/vendor/bundle \

FROM ruby:${RUBY_VERSION}-alpine as app

RUN \
fallocate -l 512M /swapfile; \
chmod 0600 /swapfile; \
mkswap /swapfile;

RUN apk add --no-cache \
libpq \
tzdata
Expand All @@ -79,7 +74,6 @@ RUN mkdir -p tmp/pids
COPY --link --chown=loot \
.tool-versions \
config.ru \
docker-entrypoint \
Gemfile* \
Rakefile ./

Expand All @@ -91,6 +85,4 @@ COPY --link --chown=loot --from=frontend build/public public/

EXPOSE 3000

USER root
ENTRYPOINT ["/loot/docker-entrypoint"]
CMD ["bundle", "exec", "puma"]
18 changes: 0 additions & 18 deletions docker-entrypoint

This file was deleted.

1 change: 1 addition & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
primary_region = "syd"
swap_size_mb = 512

[deploy]
release_command = "bundle exec rake db:migrate"
Expand Down

0 comments on commit af9697e

Please sign in to comment.