From 8bea1238ab3eeedbfb869bf798f38db4c0423b2a Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Mon, 18 May 2020 07:16:10 +0300 Subject: [PATCH] switch to using debian for docker base for bash (#1233) Signed-off-by: Matthew Peveler --- Dockerfile | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5a9526fd42f..33b80ca4216 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,20 @@ -FROM ruby:2.5-alpine - -RUN apk --no-cache add \ - g++ \ - gcc \ - libc-dev \ - make \ - nodejs \ - && gem install bundler +FROM ruby:2.6-slim WORKDIR /srv/slate -COPY . /srv/slate - -RUN bundle install - VOLUME /srv/slate/source - EXPOSE 4567 +COPY . /srv/slate + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + build-essential \ + nodejs \ + && gem install bundler \ + && bundle install \ + && apt-get remove -y build-essential \ + && apt-get autoremove -y \ + && rm -rf /var/lib/apt/lists/* + CMD ["bundle", "exec", "middleman", "server", "--watcher-force-polling"]