Skip to content

Commit

Permalink
switch to using debian for docker base for bash (#1233)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
  • Loading branch information
MasterOdin committed May 19, 2020
1 parent 8c329dc commit 8bea123
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 8bea123

Please sign in to comment.