diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000..458108284c --- /dev/null +++ b/.dockerignore @@ -0,0 +1,55 @@ +# Git +.git +.gitignore +.github + +# Docker +Dockerfile +Dockerfile.production +docker-compose.yml +.dockerignore + +# Rails +.bundle +log/* +tmp/* +db/*.sqlite3 +db/*.sqlite3-journal +storage/* +public/assets +public/packs +node_modules +yarn-error.log + +# Environment +.env +.env.* +config/master.key +config/credentials.yml.enc + +# Documentation +README.md +CHANGELOG.md +LICENSE +*.md + +# Development and test files +spec/ +test/ +features/ +coverage/ +.rspec +.rubocop.yml +.ruby-version +.byebug_history + +# OS specific +.DS_Store +Thumbs.db + +# Editor directories and files +.idea +.vscode +*.swp +*.swo +*~ diff --git a/Dockerfile.production b/Dockerfile.production index 51e3e2084d..ef42a3be4e 100644 --- a/Dockerfile.production +++ b/Dockerfile.production @@ -1,7 +1,6 @@ # Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile ARG RUBY_VERSION=3.0.3 -ARG TARGETPLATFORM=linux/amd64 -FROM --platform=${TARGETPLATFORM} registry.docker.com/library/ruby:$RUBY_VERSION-slim AS base +FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim AS base # Rails app lives here WORKDIR /opt/webapps/app