Skip to content

Commit da8b109

Browse files
gdiggspointlessone
authored andcommitted
Switch base image to avoid Segfault
Related to #111, a Segfault occurs when we hammer STDOUT with issues. Switching from alpine to a debian-based image seems to behave better in this scenario.
1 parent 6d9358a commit da8b109

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)