Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit 46ed50e

Browse files
author
Jonathan Claudius
authored
Merge pull request #525 from J-M0/dockerfile
Dockerfile improvements
2 parents cea7e48 + 1335d88 commit 46ed50e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ FROM ruby:2.7.2-alpine3.12
22
MAINTAINER Jonathan Claudius
33
ENV PROJECT=github.com/mozilla/ssh_scan
44

5-
RUN mkdir /app
6-
ADD . /app
75
WORKDIR /app
6+
ADD . /app
87

98
# required for ssh-keyscan
109
RUN apk --update add openssh-client
@@ -16,4 +15,4 @@ RUN apk --update add --virtual build-dependencies build-base && \
1615
apk del build-dependencies build-base && \
1716
rm -rf /var/cache/apk/*
1817

19-
CMD /app/bin/ssh_scan
18+
ENTRYPOINT [ "/app/bin/ssh_scan" ]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To run from a docker container, type:
2727

2828
```bash
2929
docker pull mozilla/ssh_scan
30-
docker run -it mozilla/ssh_scan /app/bin/ssh_scan -t sshscan.rubidus.com
30+
docker run -it mozilla/ssh_scan -t sshscan.rubidus.com
3131
```
3232

3333
To install and run from source, type:

0 commit comments

Comments
 (0)