Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit f276aaf

Browse files
committed
Fixed python support in Dockerfile and restart policy in docker-compose file
1 parent f83c3fc commit f276aaf

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
FROM python:3
1+
FROM python:3.6
22
WORKDIR /usr/src/tests
33
COPY . .
44
RUN pip install -r requirements.txt
55
RUN python3 -m unittest discover
6+
7+
FROM python:2.7
8+
WORKDIR /usr/src/tests
9+
COPY . .
10+
RUN pip install -r requirements.txt
611
RUN python -m unittest discover
712

8-
FROM python:3.4-alpine
13+
FROM python:3.6-alpine
914
WORKDIR /usr/src/pylint
1015
COPY . .
1116
RUN pip install -r requirements.txt

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ services:
44
tests:
55
build: .
66
container_name: tests
7-
restart: "no"
7+
restart: always
88

99
pylint:
1010
build: .
1111
container_name: pylint
12-
restart: "no"
12+
restart: always

0 commit comments

Comments
 (0)