Skip to content

Commit

Permalink
chore: reduce size of the container image
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Linkhorst committed Apr 27, 2017
1 parent cf9f9a4 commit df3d8a0
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
FROM alpine:3.5
MAINTAINER Linki <linki+docker.com@posteo.de>

RUN apk add --no-cache \
build-base \
linux-headers \
ruby-bundler \
ruby-dev \
ruby-io-console

RUN bundle config --global frozen 1

RUN mkdir -p /app
WORKDIR /app

COPY Gemfile Gemfile.lock /app/

RUN bundle install
RUN apk add --no-cache --virtual build_deps \
build-base \
linux-headers \
ruby-bundler \
ruby-dev && \

bundle config --global frozen 1 && \
bundle install && \

apk del build_deps

RUN apk add --no-cache ruby

COPY lib /app/lib
COPY config.ru /app/
Expand Down

0 comments on commit df3d8a0

Please sign in to comment.