Skip to content

Updated dockerfiles #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
55 changes: 55 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Git
.git
.gitignore
.github

# Docker
Dockerfile
Dockerfile.*
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
*~
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN mkdir -p /opt/webapps/app/tmp/pids /opt/webapps/app/log \
WORKDIR /opt/webapps/app

# Copy Gemfile for dependency installation
COPY --chown=whois:whois Gemfile ./
COPY --chown=whois:whois Gemfile Gemfile.lock ./

# Install dependencies and create Gemfile.lock
RUN gem update --system && \
Expand All @@ -70,8 +70,8 @@ USER whois
EXPOSE 43

# Health check
# HEALTHCHECK --interval=30s --timeout=3s \
# CMD nc -zv localhost 43 || exit 1
HEALTHCHECK --interval=30s --timeout=3s \
CMD nc -zv localhost 43 || exit 1

# Start the WHOIS server
CMD ["bundle", "exec", "ruby", "whois.rb"]
CMD ["bundle", "exec", "ruby", "whois.rb", "run"]
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ HEALTHCHECK --interval=30s --timeout=3s \
CMD nc -zv localhost 43 || exit 1

# Start the WHOIS server with development settings
CMD ["bundle", "exec", "ruby", "whois.rb"]
CMD ["bundle", "exec", "ruby", "whois.rb", "start"]
Loading