Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.git
log/
tmp/
storage/
coverage/
node_modules/
.bundle/
.env
config/master.key
config/credentials/*.enc
features/reports
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Ignore bundler config.
/.bundle

# Ignore the default SQLite database.
db/*.sqlite3
db/*.sqlite3-journal

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
/tmp/pids/*
!/tmp/pids/.keep
/tmp/cache/*
!/tmp/cache/
!/tmp/cache/assets/
!/tmp/cache/assets/sprockets/.keep
/storage/*
!/storage/.keep
/.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key
/config/credentials/*.key
/config/credentials/*.enc

# Ignore dotenv environment variable files.
.env
.env.*

# Ignore node/yarn artifacts.
/node_modules
/yarn-error.log

# Ignore coverage files
/coverage

# Ignore uploaded files in development
/storage/development
/storage/test
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.0
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ruby:3.3.0

RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends build-essential libpq-dev nodejs \
&& rm -rf /var/lib/apt/lists/*

ENV BUNDLE_PATH=/bundle \
BUNDLE_BIN=/bundle/bin \
GEM_HOME=/bundle
ENV PATH="${BUNDLE_BIN}:${PATH}"

WORKDIR /app

COPY Gemfile ./
RUN bundle config set --local path "$BUNDLE_PATH" \
&& bundle install

COPY . .

EXPOSE 3000

CMD ["./bin/rails", "server", "-b", "0.0.0.0"]
39 changes: 39 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
source "https://rubygems.org"

git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.3.0"

gem "rails", "~> 7.1.3", ">= 7.1.3.2"
gem "pg", "~> 1.5"
gem "puma", "~> 6.4"
gem "turbo-rails"
gem "stimulus-rails"
gem "importmap-rails"
gem "jbuilder"
gem "sprockets-rails"
gem "bootsnap", ">= 1.16.0", require: false
gem "redis", "~> 5.0"

group :development, :test do
gem "debug", ">= 1.0.0", "< 2.0.0"
gem "cucumber-rails", require: false
gem "database_cleaner-active_record"
gem "capybara"
gem "selenium-webdriver"
gem "webdrivers"
gem "rspec-expectations"
end

group :development do
gem "web-console"
gem "listen", "~> 3.7"
gem "spring"
gem "spring-watcher-listen", "~> 2.0.0"
end

group :test do
gem "simplecov", require: false
end

gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
Loading