forked from LynxSolutions/docker-node6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 895 Bytes
/
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
# Pull base image.
FROM node:6-slim
MAINTAINER Nimrod Nagy <[email protected]>
RUN apt-get update && apt-get install -y apt-transport-https
# Add yarn to sources list
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
# Install git
RUN apt-get update && apt-get install -y git rsync bzip2 yarn=0.23.2-1 \
&& rm -r /var/lib/apt/lists/*
# Global install gulp and bower
RUN npm set progress=false && \
npm install -g gulp grunt bower phantomjs && \
printf '\n%s' 'registry = http://nexus.lynxsolutions.eu/repository/npm/' >> /root/.npmrc && \
echo '{ "allow_root": true }' > /root/.bowerrc
# Binary may be called nodejs instead of node
RUN ln -s /usr/bin/nodejs /usr/bin/node
# Define working directory.
WORKDIR /workspace
CMD ["/bin/bash"]
ENTRYPOINT []