File tree
Expand file treeCollapse file tree3 files changed
+25
-4
lines changed Expand file treeCollapse file tree3 files changed
+25
-4
lines changed Original file line number | Diff line number | Diff line change |
---|
|
1 | 1 | FROM node:alpine
|
| 2 | +LABEL maintainer= "Code Climate <[email protected]>" |
2 | 3 |
|
3 | 4 | RUN adduser -u 9000 -D app
|
4 | 5 |
|
5 | 6 | WORKDIR /usr/src/app
|
6 | 7 |
|
7 |
| -COPY package.json yarn.lock ./ |
| 8 | +COPY package.json yarn.lock engine.json ./ |
8 | 9 |
|
9 | 10 | RUN yarn install && \
|
10 |
| -chown -R app:app ./ |
| 11 | +chown -R app:app ./ && \ |
| 12 | +apk add --no-cache --virtual .dev-deps jq && \ |
| 13 | +export csslint_version=$(yarn --json list --pattern csslint 2>/dev/null | jq -r '.data.trees[0].name' | cut -d@ -f2) && \ |
| 14 | +cat engine.json | jq '.version = .version + "/" + env.csslint_version' > /engine.json && \ |
| 15 | +apk del .dev-deps |
11 | 16 |
|
12 | 17 | COPY . ./
|
13 | 18 |
|
| 19 | +COPY . /usr/src/app |
| 20 | + |
14 | 21 | USER app
|
15 | 22 |
|
16 |
| -COPY . /usr/src/app |
| 23 | +VOLUME /code |
| 24 | +WORKDIR /code |
17 | 25 |
|
18 | 26 | CMD ["/usr/src/app/bin/csslint"]
|
Original file line number | Diff line number | Diff line change |
---|
|
4 | 4 | docker build -t codeclimate/codeclimate-csslint .
|
5 | 5 |
|
6 | 6 | test: image
|
7 |
| -docker run --rm codeclimate/codeclimate-csslint npm run test |
| 7 | +docker run --rm codeclimate/codeclimate-csslint sh -c "cd /usr/src/app && npm run test" |
Original file line number | Diff line number | Diff line change |
---|
|
| 1 | +{ |
| 2 | +"name": "CSSLint", |
| 3 | +"description": "CSSLint is a tool to help point out problems with your CSS code.", |
| 4 | +"maintainer": { |
| 5 | +"name": "Code Climate", |
| 6 | + |
| 7 | +}, |
| 8 | +"languages": [ |
| 9 | +"CSS" |
| 10 | +], |
| 11 | +"version": "2.0.0", |
| 12 | +"spec_version": "0.3.1" |
| 13 | +} |
You can’t perform that action at this time.
0 commit comments