Commit 915b3144 authored by Andreas Knote's avatar Andreas Knote
Browse files

Dockerfile: simplify theme build process, ensure consistent environment with bundle exec

parent 2997d1ba
...@@ -46,12 +46,11 @@ RUN apt-get update && apt-get install -y \ ...@@ -46,12 +46,11 @@ RUN apt-get update && apt-get install -y \
FROM image_resize AS hci_theme FROM image_resize AS hci_theme
## Start prebuilding ## Build Theme from source
COPY package.json / ## Installs the built gem system-wide
RUN npm install --only=dev
COPY . / COPY . /
RUN gem install bundler RUN bundle install && \
RUN bundle install bundle exec rake gem && \
RUN rake gem install hci-theme.gem && \
RUN rm -rf node_modules rm -rf node_modules && \
RUN rm package-lock.json rm package-lock.json
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