Commit 98f5d018 authored by Andreas Knote's avatar Andreas Knote

Correctly ordering rake and bundle correctly puts the bundle.js in assets/ and...

Correctly ordering rake and bundle correctly puts the bundle.js in assets/ and the prebuild copy is no longer needed.
parent 53c71f7c
Pipeline #22478 passed with stage
in 13 minutes and 23 seconds
......@@ -50,11 +50,8 @@ RUN mkdir -p /hci-theme/
WORKDIR /hci-theme/
## Start prebuilding
COPY package.json /
RUN npm install --only=dev
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
COPY . ./
RUN rake && \
bundle install && \
rm -rf node_modules && \
rm package-lock.json
#!/usr/bin/env bash
# Copy prebuild files from build container
mkdir _sass
mkdir -p assets/css/fonts
cp -r $1/_sass/slick-carousel _sass/slick-carousel
cp -r $1/assets/css/fonts/ assets/css/fonts/
cp $1/assets/css/fonts/slick.woff assets/css/fonts/slick.woff
cp $1/assets/css/fonts/slick.ttf assets/css/fonts/slick.ttf
cp $1/assets/css/ajax-loader.gif assets/css/ajax-loader.gif
cp $1/assets/bundle.js assets/bundle.js
\ No newline at end of file
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