From 3f18a40066f5269c5834e81e6ce94e2da6fae41c Mon Sep 17 00:00:00 2001 From: Lorelei Aurora Date: Wed, 27 Dec 2017 10:26:44 +0000 Subject: [PATCH] Use camjackson fork of fakes3 to avoid https://github.com/jubos/fake-s3/issues/22 --- Dockerfile | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b815996..c06ddec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,16 @@ RUN set -x \ && cd /www \ && composer update --no-autoloader +FROM ruby:alpine as ruby + +RUN set -x \ + && apk add --no-cache \ + git \ + && git clone -b master git://github.com/camjackson/fake-s3-1.git /tmp/fakes3 \ + && cd /tmp/fakes3 \ + && rake build fakes3.gemspec \ + && ls -la + FROM alpine:3.6 RUN set -x \ @@ -48,11 +58,16 @@ RUN set -x \ /sessions \ /var/run/php/ \ && chown mysql:mysql /run/mysqld \ - && gem install fakes3 --no-ri --no-rdoc \ && npm install aws-ses-local -g COPY ./fs / COPY --from=composer /www /www +COPY --from=ruby /tmp/fakes3/pkg/ /tmp/gems/ + +RUN set -x \ + && for file in /tmp/gems/*; do gem install "$file" --no-ri --no-rdoc; done \ + && rm -rf /tmp/* + EXPOSE 80 443 3306 11211