-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 868 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 868 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 ruby:2.5.3
ENV LANG=C.UTF-8
ENV TZ=America/Sao_Paulo
# Add sources for Node 10, Yarn and Chrome
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add \
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
RUN apt-get update -qq \
&& apt-get install -y \
libpq5 \
libpq-dev \
nodejs \
yarn \
google-chrome-stable \
&& apt-get clean
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /bundle
ENV BUNDLE_PATH=/bundle
RUN mkdir -p /app
COPY . /app
WORKDIR /app