Skip to content

Commit

Permalink
Merge c351fd6 into f598a16
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKostka committed Apr 21, 2024
2 parents f598a16 + c351fd6 commit a3684d8
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Dockerfile
docker-compose.yml
.semaphore
.gitignore
.gitmodules
/.git
/.bundle
/.byebug_history
/.ruby-version
/node_modules
/cypress/screenshots
/log/*
/files/*
/tmp/*
/public/*
/coverage/*
/backups
/script/metric/data/*
/.idea*
spec/examples.txt
/**/.DS_Store
!/**/.gitkeep
/**/*.iml
aws-secret.yml
cypress/videos
/.vscode
.env
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ruby:3

WORKDIR /wikirate

RUN apt-get update && \
apt-get install -y imagemagick

RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y nodejs

COPY . .

ENV RAILS_ENV=production

RUN cp -R config/sample/* config && \
rm -R config/sample

RUN bundle config without test cucumber cypress development profile
RUN bundle install
RUN bundle exec rake card:mod:symlink

CMD bundle exec decko server -b 0.0.0.0
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ gem "wkhtmltopdf-binary" # converting HTML to PDF
gem "company-mapping" # Vasso's gem, written for WikiRate
gem "rack-attack" # protection from bad clients
gem "rack-cors" # support for Cross-Origin Resource Sharing (CORS)
gem "puma", "~>5.6" # local webserver (6.x broke semaphore )

group :live do
gem "dalli" # Memcache
Expand All @@ -96,7 +97,6 @@ gem "timecop", group: %i[test cucumber] # date/time manipulation in tests
group :test, :development do
# gem "debase"
gem "decko-spring", path: "./vendor/decko/support"
gem "puma", "~>5.6" # local webserver (6.x broke semaphore )
# gem "ruby-debug-ide"
end

Expand Down

0 comments on commit a3684d8

Please sign in to comment.