Skip to content

Commit 4e6cc25

Browse files
authored
Merge pull request gate-sso#25 from pieterlange/feature/docker-alpine
Use alpine and optimize image build steps
2 parents 0954db6 + 2877e91 commit 4e6cc25

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Dockerfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
FROM jruby:9.1.7.0
1+
FROM jruby:9.1-alpine
22
LABEL maintainer <vjdhama26@gmail.com>
33

4-
RUN apt-get update -qq && apt-get install -y build-essential libmysqlclient-dev nodejs
54
RUN mkdir /app
65

76
WORKDIR /app
87

98
COPY Gemfile /app
109
COPY Gemfile.lock /app
1110

12-
RUN bundle install
11+
RUN apk --update add build-base nodejs mariadb-dev mariadb-client-libs tzdata && \
12+
bundle install && \
13+
apk del build-base mariadb-dev && \
14+
rm -rf /tmp/* /var/tmp/* /var/cache/apk/*
1315

1416
ADD . /app
1517

0 commit comments

Comments
 (0)