-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (26 loc) · 1.05 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
FROM ruby:2.5.1
MAINTAINER Ahmed Helil <[email protected]>
# apt-get update -qq
#
# apt-get update -> Update system packages list
# -qq -> is added to produce output suitable for logging, omitting progress indicators.
# the double qq since we want the least amount of logs to be produced from that command.
#
# apt-get install -y --fix-missing --no-install-recommends build-essential libpq-dev
#
# apt-get install build-essential -> https://packages.debian.org/sid/build-essential,
# libpq-dev -> required for PostgreSQL
# -y -> Automatic yes to prompts.
# -m -> Ignore missing packages.
# --no-install-recommends -> only the main dependencies (packages in the Depends field) are installed.
#
RUN apt-get update -qq && apt-get install -y -m --no-install-recommends \
build-essential \
libpq-dev
ENV CLI_HOME /usr/local/src/cli
RUN mkdir $CLI_HOME
WORKDIR $CLI_HOME
COPY Gemfile* $CLI_HOME/
RUN bundle install
COPY . $CLI_HOME
WORKDIR $CLI_HOME