-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile-dev
30 lines (23 loc) · 1.14 KB
/
Dockerfile-dev
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.3
# Cleanup expired Let's Encrypt CA (Sept 30, 2021)
RUN sed -i '/^mozilla\/DST_Root_CA_X3/s/^/!/' /etc/ca-certificates.conf && update-ca-certificates -f
RUN echo 'deb http://archive.debian.org/debian stretch main\n\
deb http://archive.debian.org/debian-security stretch/updates main' > /etc/apt/sources.list
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /app
# Download prebuilt phantomjs binary from phantomjs-prebuild node module
# official download site until a CDN is settled for the official page.
# https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
#
# See https://github.com/ariya/phantomjs/issues/13953
RUN \
wget -q https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
tar -xf phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
rm -rf /usr/local/phantomjs && \
mv phantomjs-2.1.1-linux-x86_64 /usr/local/phantomjs && \
rm -f phantomjs-*.tar.bz2
ENV INSTEDD_THEME //theme.instedd.org
ENV PATH="/usr/local/phantomjs/bin:${PATH}"