-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (21 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
31 lines (21 loc) · 1.17 KB
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
FROM node:latest
MAINTAINER Tim Brandin "[email protected]"
RUN apt-get update
RUN apt-get -y dist-upgrade
RUN apt-get install --no-install-recommends -y -q sudo curl python build-essential git ca-certificates
ENV PHANTOM_JS_VERSION 1.9.7-linux-x86_64
RUN apt-get install -y curl bzip2 libfreetype6 libfontconfig
RUN curl -sSL https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOM_JS_VERSION.tar.bz2 | tar xjC /
RUN ln -s phantomjs-$PHANTOM_JS_VERSION /phantomjs
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && echo 'LANG="en_US.UTF-8"'>/etc/default/locale && dpkg-reconfigure --frontend=noninteractive locales && update-locale LANG=en_US.UTF-8
RUN export LANG=en_US.UTF-8
RUN adduser --disabled-password --gecos '' builder
RUN usermod -aG sudo builder
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Fixes issues with builds not going through on Bitbucket Pipeline due to
# issues reaching unicode.org.
RUN apt-get install unicode-data
COPY s3-upload.sh /usr/local/bin/s3-upload
USER builder
RUN curl -sL https://install.meteor.com | sh