-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
52 lines (46 loc) · 1.14 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Decidim Application Dockerfile
#
# This is an image to be used with docker-compose, to develop Decidim (https://decidim.org) locally.
#
#
# Starts with a clean ruby image from Debian (slim)
FROM ruby:2.5.3
# Installs system dependencies
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq && apt-get install -y \
build-essential \
libpq-dev \
nodejs \
imagemagick
# Bleeding edge, I have some doubts with Alpine and glibc
##
## Starts with a clean ruby image from Alpine Linux
#FROM ruby:2.5.3-alpine
#
## Installs system dependencies
#RUN apk add --update --no-cache \
# build-base \
# file \
# imagemagick \
# libc6-compat \
# nodejs \
# postgresql-dev \
# tzdata \
# xz-libs
# Sets workdir as /app
RUN mkdir /app
WORKDIR /app
# Installs bundler dependencies
ENV BUNDLE_PATH=/app/vendor/bundle \
BUNDLE_BIN=/app/vendor/bundle/bin \
BUNDLE_JOBS=5 \
BUNDLE_RETRY=3 \
GEM_HOME=/bundle
ENV PATH="${BUNDLE_BIN}:${PATH}"
ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
# Specific por DDDC/decode
ADD decidim-petitions/ /app/decidim-petitions
RUN bundle install
# Copy all the code to /app
ADD . /app