Skip to content

Commit 4a3a1ee

Browse files
authored
Merge pull request #117 from NVolcz/dockerfile
Dockerfile
2 parents e28361f + a523e59 commit 4a3a1ee

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
language: python
2+
services: docker
23
python:
34
- 3.4
45
- 3.5
56
- 3.6
67
install:
78
- pip --version
89
- pip install -r test-requirements.txt
9-
- pip install pep8
10+
- pip install pep8
1011
before_script:
1112
- pep8 -v *.py VHostScan/
1213
script:
1314
- pytest
15+
- docker build -t VHostScan .

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu:latest
2+
3+
RUN mkdir /app
4+
5+
ADD . /app
6+
7+
RUN apt-get update; apt-get install -y python3 python3-pip
8+
9+
RUN cd /app && pip3 install -r test-requirements.txt && python3 setup.py install
10+
11+
ENTRYPOINT ["VHostScan"]

0 commit comments

Comments
 (0)