I have a Sinatra app that works fine in Docker:
# Image
FROM ruby:2.3.3
RUN apt-get update && \
apt-get install -y net-tools
# Install app
ENV APP_HOME /app
ENV HOME /root
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
COPY Gemfile* $APP_HOME/
RUN bundle install
COPY . $APP_HOME
# Configure App
ENV LANG en_US.UTF-8
ENV RACK_ENV production
EXPOSE 9292
# run the application
CMD ["bundle", "exec", "rackup"]
But when I try to add Redis:
# Redis
RUN apt-get update && apt-get install -y redis-server
EXPOSE 6379
CMD ["/usr/bin/redis-server"]
Redis does not seem to start.
So, what is a good way to add Redis to a Ruby (FROM ruby:2.3.3
) Docker container?