-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (26 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
30 lines (26 loc) · 822 Bytes
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
FROM ghcr.io/rnters/heroku-rails:20-3.0.2
LABEL maintainer="João Loff <joao@rnters.com>"
# for phantomJS
ENV QT_QPA_PLATFORM offscreen
RUN set -ex ;\
# install all needed packages
apt-get update ;\
apt-get install -y --no-install-recommends \
# update certificates
ca-certificates \
;\
rm -rf /var/lib/apt/lists/*
#------------
# Dockerize
#------------
ENV DOCKERIZE_VERSION=v0.6.1
RUN set -ex ;\
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 ;\
rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
#------------
# Gemfile
#------------
COPY Gemfile* ./
RUN set -ex ;\
bundle install --jobs 4 --retry 3