Skip to content

Commit 3cb2fa8

Browse files
authored
Merge pull request #119 from codeclimate/gd-segfault
Switch base image to avoid Segfault
2 parents e18647f + 7f3d77b commit 3cb2fa8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
FROM mhart/alpine-node:5.4
1+
FROM node:6.3.1-slim
22
MAINTAINER Code Climate <hello@codeclimate.com>
33

44
WORKDIR /usr/src/app
55
COPY npm-shrinkwrap.json /usr/src/app/
66
COPY package.json /usr/src/app/
77

8-
RUN apk --update add git jq && \
8+
RUN apt-get update && \
9+
apt-get install -y git jq && \
910
npm install && \
1011
git clone https://github.com/eslint/eslint.git && \
1112
ESLINT_DOCS_VERSION=`npm -j ls eslint | jq -r .dependencies.eslint.version` && \
@@ -15,9 +16,10 @@ RUN apk --update add git jq && \
1516
mkdir -p /usr/src/app/lib/docs/rules/ && \
1617
cp ./eslint/docs/rules/* /usr/src/app/lib/docs/rules/ && \
1718
rm -rf eslint && \
18-
apk del --purge git jq
19+
apt-get purge -y git jq && \
20+
apt-get autoremove -y
1921

20-
RUN adduser -u 9000 -D app
22+
RUN adduser -u 9000 --disabled-password app
2123
COPY . /usr/src/app
2224
RUN chown -R app:app /usr/src/app
2325

0 commit comments

Comments
 (0)