forked from snyk-labs/docker-goof
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c23be53
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM node:6.14.2-slim | ||
|
||
RUN apt-get update -y | ||
RUN apt-get install -y imagemagick |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Docker demo | ||
|
||
Open a terminal and open the `docker-demo` directory. | ||
|
||
1. Build the image | ||
|
||
```console | ||
docker build -t docker-demo . | ||
``` | ||
|
||
2. Test the image | ||
|
||
```console | ||
snyk test --docker docker-demo --file=Dockerfile | ||
``` | ||
|
||
All-in-one to clone and run: | ||
|
||
```console | ||
git clone [email protected]:snyk/docker-demo && \ | ||
cd docker-demo && \ | ||
docker build -t docker-demo . && \ | ||
snyk test --docker docker-demo --file=Dockerfile | ||
``` |