Skip to content

Instantly share code, notes, and snippets.

@diogorusso
Created October 28, 2018 00:38
Show Gist options
  • Save diogorusso/f0e4f5bb255ca34cf41bdd7a2dda36f3 to your computer and use it in GitHub Desktop.
Save diogorusso/f0e4f5bb255ca34cf41bdd7a2dda36f3 to your computer and use it in GitHub Desktop.

Docker env setup

  • Env Setup
# criar atalhos de temrinal no Ubuntu
#criar receita para ambiente de teste
# testes: velocidade , visual regression....estudar mais
# build and run docker image command to copy and paste
# build image: docker build -t="image name" .
# run image: docker run -t -i jellypack
FROM ubuntu:latest
MAINTAINER Diogo Russo "hello@diogorusso.com"
# install curl command
RUN apt-get update
RUN apt-get install curl --yes
# Install Git
RUN apt-get install -y git
RUN apt-get update
# Install Ruby
RUN apt-get install ruby ruby-dev make gcc --yes
RUN apt-get update
# Install Ruby gems
RUN gem install bundler
RUN gem install jekyll
# Install Node.js
RUN curl --silent --location https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs && npm update npm -g
RUN cd usr/bin; ln -s nodejs node; cd ../..
RUN apt-get install build-essential --yes
RUN apt-get update
# Install Gulp + Webpack Global
RUN npm install gulp -g
RUN npm install webpack -g
#make SRC dir
RUN mkdir -p /_jellykit \
RUN mkdir -p /_dist-build \
WORKDIR /_dev-src
# add file to image
# COPY new-site.sh new-site.sh
# add folder to image
# ADD bin/ bin/
#volumes
VOLUME /_dev-src
VOLUME /_dist-build
#work dir
EXPOSE 3000
#work-dir
WORKDIR /_dev-src
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment