Commit 70750390 authored by Marvin Thäns's avatar Marvin Thäns
Browse files

dockerize prebuild with rake

parent 720be4b8
Pipeline #19981 passed with stage
in 13 minutes and 55 seconds
......@@ -30,6 +30,13 @@ RUN apt-get update && apt-get install -y curl && \
dpkg-reconfigure --frontend=noninteractive locales
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
## Start prebuilding
COPY package.json /
RUN npm install --only=dev
COPY . /
\ No newline at end of file
COPY . /
RUN gem install bundler
RUN bundle install
RUN rake
RUN rm -rf node_modules
RUN rm package-lock.json
\ No newline at end of file
......@@ -31,6 +31,6 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "jekyll", "~> 4.0"
spec.add_runtime_dependency 'jekyll-sass-converter', "~> 2.0"
spec.add_development_dependency "bundler", "~> 1.16"
spec.add_development_dependency "bundler", "~> 2.1.4"
spec.add_development_dependency "rake", "~> 12.0"
end
#!/usr/bin/env bash
# Copy prebuild files from build container
bash ../scripts/copyPrebuild
bundle
bundle update
jekyll build
#!/usr/bin/env bash
# Copy prebuild files from build container
mkdir _sass
mkdir -p assets/css/fonts
cp -r ../_sass/slick-carousel _sass/slick-carousel
cp -r ../assets/css/fonts/ assets/css/fonts/
cp ../assets/css/fonts/slick.woff assets/css/fonts/slick.woff
cp ../assets/css/fonts/slick.ttf assets/css/fonts/slick.ttf
cp ../assets/css/ajax-loader.gif assets/css/ajax-loader.gif
cp ../assets/bundle.js assets/bundle.js
cp ../assets/css/ajax-loader.gif assets/css/ajax-loader.gif
\ No newline at end of file
#!/usr/bin/env bash
# Copy prebuild files from build container
bash ../scripts/copyPrebuild
# Build
bundle
bundle update
jekyll serve --host=0.0.0.0 --port=4200 --trace&
......
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