-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 861 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM centos:centos7
MAINTAINER Damien <cdams@outlook.fr>
## RHEL/CentOS 7 64-Bit ##
RUN rpm -Uvh http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm
# Default programs + Install Node.js and npm
RUN yum install -y git bzip2 rubygems ruby-devel make tar nodejs npm --enablerepo=epel
# Install sass/compass
RUN gem install sass && gem install compass
# Create non-root user
RUN /usr/sbin/useradd --create-home --shell /bin/bash user && echo 'root:admin' | chpasswd
# Install Yo stack
RUN npm install -g yo
# User permissions
RUN mkdir -p /.config/configstore /.local /.cache
RUN chown -R user /.npm /usr/lib /.config /.local /.cache
# Useful command to clean docker images / containers
#docker rm -f `docker ps --no-trunc -aq` && docker images | grep "<none>" | awk '{print $3}' | xargs docker rmi -f