File: Dockerfile

package info (click to toggle)
ruby-sidekiq-cron 1.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 476 kB
  • sloc: ruby: 1,822; sh: 8; makefile: 3
file content (32 lines) | stat: -rw-r--r-- 802 bytes parent folder | download | duplicates (2)
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
FROM ruby:2.3.1
MAINTAINER Joao Serra <joaopfserra@gmail.com>

RUN apt-get update && \
    apt-get install -y --force-yes \
            curl \
            git \
            wget \
            libpq-dev && \
    apt-get autoremove -y --force-yes && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ENV DOCKERIZE_VERSION v0.2.0
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
    && tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz

RUN gem install bundler

ENV APP_HOME /sidekiq-cron
RUN mkdir $APP_HOME
WORKDIR $APP_HOME

ADD Gemfile* $APP_HOME/

ENV BUNDLE_GEMFILE=$APP_HOME/Gemfile \
  BUNDLE_JOBS=2 \
  BUNDLE_PATH=/bundle

RUN bundle install

ADD . $APP_HOME