Created
May 31, 2015 14:23
-
-
Save PaulGuo/9e4da611f8f8d648eb67 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########### | |
# Usage: | |
# | |
# docker run -it -v <project-resource-directory>:/workspace \ | |
# --name <container-name> [image-name] | |
# | |
FROM centos | |
MAINTAINER Guokai | |
RUN yum -y update | |
RUN yum -y install tar git | |
RUN curl -sL https://rpm.nodesource.com/setup | bash - | |
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.1/install.sh | NVM_DIR=/usr/local/nvm bash \ | |
&& source /usr/local/nvm/nvm.sh \ | |
&& nvm install v0.12.0 \ | |
&& nvm use v0.12.0 | |
EXPOSE 8000 | |
RUN mkdir -p /opt/meituan/apps | |
RUN mkdir -p /opt/logs/wwwlogs | |
RUN ssh-keygen -t rsa -q -N '' -f '/root/.ssh/id_rsa' | |
RUN echo 'source /usr/local/nvm/nvm.sh' >> ~/.bash_profile | |
# boot2docker init | |
# boot2docker start | |
# eval "$(boot2docker shellinit)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment