diff --git a/Dockerfile b/Dockerfile index 47e9bb0..e2815df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,4 @@ ADD index.html.erb ./ ADD saca-sapos ./ EXPOSE 4567 -CMD ["bundle", "exec", "ruby", "main.rb"] +CMD ["puma", "-p", "4567"] diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..8e8dd59 --- /dev/null +++ b/config.ru @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# SPDX-FileCopyrightText: 2022 Hugo Peixoto + +require './main' +run Sinatra::Application