forked from lekastillo/webhook_sms_request
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ruby:2.7
RUN apt-get update -qq && \
apt-get install -y build-essential \
default-mysql-client \
vim \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# Configure the main working directory. This is the base
# directory used in any further RUN, COPY, and ENTRYPOINT
# commands.
RUN mkdir -p /app
WORKDIR /app
# Copy the Gemfile as well as the Gemfile.lock and install
# the RubyGems. This is a separate step so the dependencies
# will be cached unless changes to one of those two files
# are made.
ADD Gemfile /app
ADD Gemfile.lock /app
RUN gem install bundler
RUN bundle install --jobs 8 --retry 5
# Copy the main application.
ADD . /app
EXPOSE 9292
# Start puma
# ENTRYPOINT [ "rackup" ]
# ENTRYPOINT bundle exec rackup -p 9292 --host 0.0.0.0
# CMD bundle exec sidekiq -r ./workers/sms_request_worker.rb -C ./config/sidekiq.yml
CMD bundle exec sidekiq -r ./workers/sms_request_worker.rb -C ./config/sidekiq.yml -d
ENTRYPOINT bundle exec rackup -p 9292 --host 0.0.0.0