Dockerfile in netbox-client-ruby-0.1.0 vs Dockerfile in netbox-client-ruby-0.1.1
- old
+ new
@@ -1,11 +1,15 @@
-FROM ruby:2.3.4-alpine
+ARG RUBY_VERSION=2.3.4
+FROM ruby:${RUBY_VERSION}-alpine
-RUN apk add --no-cache git
+RUN apk add --no-cache git openssl-dev build-base
RUN mkdir /app
WORKDIR /app
+COPY Gemfile Gemfile.lock netbox-client-ruby.gemspec VERSION ./
+RUN bundle install --jobs 4 --deployment --quiet
+
COPY . ./
-RUN bundle install --jobs 4 --quiet --deployment
+
CMD docker/start.sh