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

Commit

Permalink
add basic docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
pehbehbeh committed Jun 18, 2019
1 parent 1f2504a commit 1da2362
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:10

WORKDIR /app

# Install dependencies
COPY package.json yarn.* ./
RUN yarn install

# Copy our code on top
COPY lib ./lib
COPY bin ./bin

ENTRYPOINT ["bin/pug-lint-vue"]
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'
services:
app:
build: .
volumes:
- ./:/app
entrypoint: tail -F /dev/null
15 changes: 15 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,18 @@ The following example scans the `assets` directory for `.vue` files and outputs
```
$ pug-lint-vue assets
```

## Development

Build the docker container via:

```
$ docker build . -t pug-lint-vue
```

Use docker compose to work on the files:

```
$ docker-compose up
$ docker-compose exec app bash
```

0 comments on commit 1da2362

Please sign in to comment.