Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Test committed Sep 13, 2024
1 parent ce935b7 commit 7befc38
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,15 @@ COPY sidekiq-entrypoint.sh ./sidekiq-entrypoint.sh
# Make sure the entrypoint scripts are executable
RUN chmod +x entrypoint.sh sidekiq-entrypoint.sh

EXPOSE 3000
# Define the default command to be run in the container
RUN SECRET_KEY_BASE=dummy_key RAILS_ENV=production bundle exec rake assets:precompile
RUN SECRET_KEY_BASE=dummy_key RAILS_ENV=production bundle exec rake assets:precompile


# Copy both entrypoint scripts and make them executable
COPY entrypoint.sh /usr/bin/
COPY sidekiq-entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
RUN chmod +x /usr/bin/sidekiq-entrypoint.sh

CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "3000"]
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.4-alpha
1.0.5-alpha
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:

worker:
build: .
command: bundle exec sidekiq
command: ["bundle", "exec", "sidekiq"]
entrypoint: ["./sidekiq-entrypoint.sh"]
volumes:
- .:/app
Expand Down

0 comments on commit 7befc38

Please sign in to comment.