From f2bec9b1ba0412c17e3b60aa1b24c6a0f468e7d3 Mon Sep 17 00:00:00 2001 From: Joe Francis Date: Wed, 17 Oct 2018 09:29:45 -0500 Subject: [PATCH] Updating alpine and gem versions Updating to latest, prior versions did not seem to work out of the box. Had to add json to Gemfile in order to get server to launch. --- Dockerfile | 8 ++++---- Gemfile | 3 ++- Gemfile.lock | 30 ++++++++++++++++-------------- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index 20f33b0..232a216 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM alpine:3.3 +FROM alpine:3.8 MAINTAINER technolengy@gmail.com RUN apk update && apk --update add ruby ruby-irb ruby-io-console tzdata ca-certificates -ADD Gemfile /app/ +ADD Gemfile /app/ ADD Gemfile.lock /app/ RUN apk --update add --virtual build-deps build-base ruby-dev \ @@ -12,8 +12,8 @@ RUN apk --update add --virtual build-deps build-base ruby-dev \ && bundle install \ && apk del build-deps -ADD . /app -RUN chown -R root:root /app +ADD . /app +RUN chown -R root:root /app WORKDIR /app diff --git a/Gemfile b/Gemfile index e2d807b..7ba4f5c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ source 'https://rubygems.org' -gem 'midi-smtp-server', '~> 2.1.2' +gem 'midi-smtp-server', '~> 2.2.4' gem 'mailgun-ruby', '~> 1.1.0' +gem 'json' diff --git a/Gemfile.lock b/Gemfile.lock index 3093a84..3a25a3f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,31 +1,33 @@ GEM remote: https://rubygems.org/ specs: - domain_name (0.5.20160826) + domain_name (0.5.20180417) unf (>= 0.0.5, < 1.0.0) http-cookie (1.0.3) domain_name (~> 0.5) - json (1.8.3) - mailgun-ruby (1.1.0) - json (~> 1.8) - rest-client (~> 1.6) - midi-smtp-server (2.1.2) - mime-types (2.99.2) + json (2.1.0) + mailgun-ruby (1.1.11) + rest-client (~> 2.0.2) + midi-smtp-server (2.2.4) + mime-types (3.2.2) + mime-types-data (~> 3.2015) + mime-types-data (3.2018.0812) netrc (0.11.0) - rest-client (1.8.0) + rest-client (2.0.2) http-cookie (>= 1.0.2, < 2.0) - mime-types (>= 1.16, < 3.0) - netrc (~> 0.7) + mime-types (>= 1.16, < 4.0) + netrc (~> 0.8) unf (0.1.4) unf_ext - unf_ext (0.0.7.2) + unf_ext (0.0.7.5) PLATFORMS ruby DEPENDENCIES - mailgun-ruby - midi-smtp-server + json + mailgun-ruby (~> 1.1.0) + midi-smtp-server (~> 2.2.4) BUNDLED WITH - 1.11.2 + 1.16.3