Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Commit 1da2362

Browse files
committed
add basic docker setup
1 parent 1f2504a commit 1da2362

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:10
2+
3+
WORKDIR /app
4+
5+
# Install dependencies
6+
COPY package.json yarn.* ./
7+
RUN yarn install
8+
9+
# Copy our code on top
10+
COPY lib ./lib
11+
COPY bin ./bin
12+
13+
ENTRYPOINT ["bin/pug-lint-vue"]

docker-compose.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: '3'
2+
services:
3+
app:
4+
build: .
5+
volumes:
6+
- ./:/app
7+
entrypoint: tail -F /dev/null

readme.md

+15
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,18 @@ The following example scans the `assets` directory for `.vue` files and outputs
3333
```
3434
$ pug-lint-vue assets
3535
```
36+
37+
## Development
38+
39+
Build the docker container via:
40+
41+
```
42+
$ docker build . -t pug-lint-vue
43+
```
44+
45+
Use docker compose to work on the files:
46+
47+
```
48+
$ docker-compose up
49+
$ docker-compose exec app bash
50+
```

0 commit comments

Comments
 (0)