Commit 580be31d authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg

restructure dockerfile

parent 3e9f215f
Pipeline #2346 failed with stages
in 25 seconds
FROM nginx
COPY site /srv/www/site
COPY .bowerrc /srv/www/.bowerrc
COPY _config.yml /srv/www/_config.yml
COPY package.json /srv/www/package.json
COPY bower.json /srv/www/bower.json
WORKDIR /srv/www
ADD default.conf /etc/nginx/conf.d/default.conf
RUN apt-get update && apt-get install -y curl gnupg build-essential python2.7 git zlib1g-dev ruby-full \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
RUN chmod a+x ./nodesource_setup.sh
RUN ./nodesource_setup.sh
RUN apt-get install nodejs
# RUN cd /tmp && curl -LOk http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.5.tar.gz && \
# tar -xvzf ruby-2.2.5.tar.gz && \
# cd ruby-2.2.5/ && \
# ./configure --prefix=/usr/local && \
# make && \
# make install && \
# rm -rf ruby-2.2.5.tar.gz && \
# rm -rf ruby-2.2.5
# RUN ln -s `which nodejs` /usr/bin/node
RUN gem install jekyll --no-ri --no-rdoc
RUN gem install rouge --no-ri --no-rdoc
COPY default.conf /etc/nginx/conf.d/default.conf
COPY site /srv/www/site
COPY .bowerrc /srv/www/.bowerrc
COPY _config.yml /srv/www/_config.yml
COPY package.json /srv/www/package.json
COPY bower.json /srv/www/bower.json
RUN npm install
RUN node_modules/bower/bin/bower install --config.interactive=false -p --allow-root
RUN jekyll build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment