forked from DMPRoadmap/roadmap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
44 lines (34 loc) · 1.25 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
FROM ruby:2.6.6
# Dependancies
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y \
build-essential \
git \
libgmp3-dev \
libpq-dev \
default-mysql-client \
gettext
ARG INSTALL_PATH=/usr/src/app
ENV INSTALL_PATH $INSTALL_PATH
# Setup bundle to install gems to volume
ENV BUNDLE_PATH=/bundle/ \
BUNDLE_BIN=/bundle/bin \
GEM_HOME=/bundle
ENV Path="${BUNDLE_BIN}:${PATH}"
WORKDIR $INSTALL_PATH
RUN gem install bundler
# install yarn+node from packages
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get install -y nodejs
RUN apt-get update && apt-get install -y yarn
RUN wget --quiet https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz && \
tar vxf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz && \
cp wkhtmltox/bin/wk* /usr/local/bin/ && \
rm -rf wkhtmltox
# Chrome for chromedriver tests
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
# expose correct port
EXPOSE 3000