| Server IP : 68.183.124.220 / Your IP : 216.73.217.137 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/gavin/workspace/happymandarin/ |
Upload File : |
# Build: # docker build -t meanjs/mean . # # Run: # docker run -it meanjs/mean # # Compose: # docker-compose up -d FROM ubuntu:latest MAINTAINER MEAN.JS # 80 = HTTP, 443 = HTTPS, 3000 = MEAN.JS server, 35729 = livereload, 8080 = node-inspector EXPOSE 80 443 3000 35729 8080 # Set development environment as default ENV NODE_ENV development # Install Utilities RUN apt-get update -q \ && apt-get install -yqq curl \ wget \ aptitude \ htop \ vim \ git \ traceroute \ dnsutils \ curl \ ssh \ tree \ tcpdump \ nano \ psmisc \ gcc \ make \ build-essential \ libfreetype6 \ libfontconfig \ libkrb5-dev \ ruby \ sudo \ apt-utils \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Install nodejs RUN curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - RUN sudo apt-get install -yq nodejs \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Install MEAN.JS Prerequisites RUN npm install --quiet -g gulp bower yo mocha karma-cli pm2 && npm cache clean RUN mkdir -p /opt/mean.js/public/lib WORKDIR /opt/mean.js # Copies the local package.json file to the container # and utilities docker container cache to not needing to rebuild # and install node_modules/ everytime we build the docker, but only # when the local package.json file changes. # Install npm packages COPY package.json /opt/mean.js/package.json RUN npm install --quiet && npm cache clean # Install bower packages COPY bower.json /opt/mean.js/bower.json COPY .bowerrc /opt/mean.js/.bowerrc RUN bower install --quiet --allow-root --config.interactive=false COPY . /opt/mean.js # Run MEAN.JS server CMD ["npm", "start"]