File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,5 +3,3 @@ RUN apk add python3 python2 libmagic
33WORKDIR /python-magic
44COPY . .
55RUN python3 -m pip install tox
6- CMD python3 -m tox
7-
Original file line number Diff line number Diff line change 11FROM archlinux:latest
22RUN yes | pacman -Syyu --overwrite '*'
3- RUN yes | pacman -S python python2 file which
4- COPY . /python-magic
5- CMD cd /python-magic/test && python3 ./run.py
3+ RUN yes | pacman -S python python-pip file which
4+ WORKDIR /python-magic
5+ COPY . .
6+ RUN python3 -m pip install tox
Original file line number Diff line number Diff line change 11FROM ubuntu:bionic
2- WORKDIR /python-magic
3- COPY . .
42RUN apt-get update
53RUN apt-get -y install python python3 locales python3-pip libmagic1
64RUN locale-gen en_US.UTF-8
7- RUN python3 -m pip install tox
8- CMD python3 -m tox
95
6+ WORKDIR /python-magic
7+ COPY . .
8+ RUN python3 -m pip install tox
Original file line number Diff line number Diff line change 11FROM centos:7
22RUN yum -y update
33RUN yum -y install file-devel python3 python2 which
4+ ENV SKIP_FROM_DESCRIPTOR=1
5+
46WORKDIR /python-magic
57COPY . .
68RUN python3 -m pip install tox
7- ENV SKIP_FROM_DESCRIPTOR=1
8- CMD python3 -m tox
9-
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ RUN yum -y install file-libs python3 python2 which glibc-locale-source
44RUN yum reinstall glibc-common -y && \
55 localedef -i en_US -f UTF-8 en_US.UTF-8 && \
66 echo "LANG=en_US.UTF-8" > /etc/locale.conf
7+
78WORKDIR /python-magic
89COPY . .
910RUN python3 -m pip install tox
10- CMD python3 -m tox
11-
Original file line number Diff line number Diff line change 11FROM ubuntu:focal
2- WORKDIR /python-magic
3- COPY . .
42RUN apt-get update
53RUN apt-get -y install python python3 locales python3-pip libmagic1
64RUN locale-gen en_US.UTF-8
5+
6+ WORKDIR /python-magic
7+ COPY . .
78RUN python3 -m pip install tox
8- CMD python3 -m tox
9+
910
Original file line number Diff line number Diff line change 11FROM ubuntu:xenial
2- WORKDIR /python-magic
3- COPY . .
42RUN apt-get update
53RUN apt-get -y install python python3 locales python3-pip libmagic1
64RUN locale-gen en_US.UTF-8
7- RUN python3 -m pip install tox
8- CMD python3 -m tox
95
6+ WORKDIR /python-magic
7+ COPY . .
8+ RUN python3 -m pip install tox
Original file line number Diff line number Diff line change 66ROOT=$( dirname $0 ) /..
77cd $ROOT
88
9- for f in test/docker/* ; do
9+ for f in test/docker/* ; do
1010 H=$( docker build -q -f ${f} .)
11- docker run --rm $H
11+ docker run --rm $H python3 -m tox
1212done
1313
You can’t perform that action at this time.
0 commit comments