-
Notifications
You must be signed in to change notification settings - Fork 616
/
Copy pathDockerfile
53 lines (41 loc) · 1.57 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
45
46
47
48
49
50
51
52
53
FROM ubuntu:14.04
MAINTAINER "Konrad Kleine"
USER root
############################################################
# Setup environment variables
############################################################
ENV SOURCE_DIR /source
ENV START_SCRIPT /root/start-develop.sh
############################################################
# Speedup DPKG and don't use cache for packages
############################################################
# Taken from here: https://gist.github.com/kwk/55bb5b6a4b7457bef38d
#
# this forces dpkg not to call sync() after package extraction and speeds up
# install
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup
# we don't need an apt cache in a container
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache
############################################################
# Install development requirements
############################################################
RUN apt-get -y update && \
DEBIAN_FRONTEND=noninteractive && \
apt-get -y install \
git \
nodejs \
nodejs-legacy \
npm \
--no-install-recommends
RUN git config --global url."https://".insteadOf git://
# Avoid this: "Problem with the SSL CA cert (path? access rights?)"
RUN git config --global http.sslVerify false
############################################################
# Create start script
############################################################
# Let people know how this was built
ADD Dockerfile /root/Dockerfile
# Exposed ports (only the grunt port 9000)
EXPOSE 9000
VOLUME ["/source"]
CMD $START_SCRIPT