Docker should handle installing dependencies

pull/35/head
Stefan Schacherl 2017-06-23 13:52:53 +02:00
parent a7ebd24a4b
commit 6dbe3dded3
2 changed files with 9 additions and 3 deletions

View File

@ -5,6 +5,11 @@
FROM ruby:2.3.1
MAINTAINER Mike Heijmans <parabuzzle@gmail.com>
RUN apt-get update && \
apt-get install python-software-properties -y && \
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
apt-get install nodejs -y
# Add env variables
ENV PORT 80
ENV REGISTRY_HOST localhost
@ -21,6 +26,10 @@ WORKDIR $APP_HOME
# Add the app
ADD . $APP_HOME
RUN gem install httparty memoist && \
npm install && \
node_modules/.bin/webpack
RUN gem update bundler
RUN bundle install

View File

@ -34,9 +34,6 @@ end
desc "Build Container"
task :build do
sh "npm install"
sh "npm install webpack"
sh "node_modules/webpack/bin/webpack.js"
sh "docker build -t parabuzzle/craneoperator:latest ."
end