-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (36 loc) · 722 Bytes
/
Dockerfile
File metadata and controls
42 lines (36 loc) · 722 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
31
32
33
34
35
36
37
38
39
40
41
42
# --- Select the image you'd like to use locally
FROM ruby:2.5.1-alpine3.7
# FROM heroku/heroku:18-build
# --- For Alpine image
RUN apk update
RUN apk add \
bash \
build-base \
git \
nodejs \
python3 \
postgresql-dev \
postgresql-client \
tzdata \
yarn \
&& rm -rf /var/cache/apk/*
# --- For Heroku image
# RUN apt-get update && apt-get install -y \
# bash \
# build-base \
# nodejs \
# python3 \
# postgresql-dev \
# postgresql-client \
# tzdata \
# yarn \
# && rm -rf /var/cache/apk/*
# First copy the bundle files and install gems to aid caching of this layer
WORKDIR /tmp
COPY Gemfile* /tmp/
RUN bundle install
ENV app /dtv
RUN mkdir $app
WORKDIR $app
ADD . $app
EXPOSE 3000