Skip to content

Commit d8b3dd1

Browse files
committed
Fix building image
- ruby-nokogiri seems to not exist as a package anymore, but a newer version of nokogiri installs a bit more easily, so go with that - Fixed environment name so that we actually pin to this commit
1 parent 920dace commit d8b3dd1

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ WORKDIR /usr/src/app
44
COPY Gemfile /usr/src/app/
55
COPY Gemfile.lock /usr/src/app/
66

7-
RUN apk --update add nodejs git ruby ruby-dev ruby-bundler less ruby-nokogiri build-base && \
7+
RUN apk --update add nodejs git zlib zlib-dev ruby ruby-dev ruby-bundler less build-base && \
88
bundle install -j 4 && \
9-
apk del build-base && rm -fr /usr/share/ri
9+
apk del --purge build-base zlib zlib-dev && rm -fr /usr/share/ri
1010

1111
ENV CSSLINT_SHA=0e7aeadd02f5babca5152993374043f9f736a116
12-
RUN npm install -g codeclimate/csslint.git#$CSSLINT_COMMIT
12+
RUN npm install -g codeclimate/csslint.git#$CSSLINT_SHA
1313

1414
RUN adduser -u 9000 -D app
1515
USER app

Gemfile.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ GEM
55
diff-lcs (1.2.5)
66
json (1.8.3)
77
method_source (0.8.2)
8-
mini_portile (0.6.2)
9-
nokogiri (1.6.6.2)
10-
mini_portile (~> 0.6.0)
8+
mini_portile2 (2.1.0)
9+
nokogiri (1.6.8)
10+
mini_portile2 (~> 2.1.0)
11+
pkg-config (~> 1.1.7)
12+
pkg-config (1.1.7)
1113
pry (0.10.1)
1214
coderay (~> 1.1.0)
1315
method_source (~> 0.8.1)

0 commit comments

Comments
 (0)