diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2021-03-30 15:48:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-30 15:48:14 +0200 |
| commit | acfb6e552b287cc91d2060456be4ea7071b9ba8e (patch) | |
| tree | baca9a2d70bdfbf715ee436a285c9f7c79c2c136 | |
| parent | a2ab561bf283ec2c82937c51128f19d14589f6a9 (diff) | |
| parent | d0bad61441338b56841d0cea7ca440ea14f4ee5c (diff) | |
| download | miasm-acfb6e552b287cc91d2060456be4ea7071b9ba8e.tar.gz miasm-acfb6e552b287cc91d2060456be4ea7071b9ba8e.zip | |
Merge pull request #1360 from clslgrnc/dockerfile
Fix Dockerfile (UnicodeEncodeError)
Diffstat (limited to '')
| -rw-r--r-- | Dockerfile | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/Dockerfile b/Dockerfile index 50f1c33a..65a6c8f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,24 +14,37 @@ # You should have received a copy of the GNU General Public License # along with Miasm-Docker. If not, see <http://www.gnu.org/licenses/>. -FROM debian:stretch -MAINTAINER Camille Mougey <commial@gmail.com> +FROM debian:buster +LABEL maintainer="Camille Mougey <commial@gmail.com>" # Download needed packages -RUN apt-get -qq update && \ - apt-get -qqy install python python3 libpython-dev libpython3-dev python-pyparsing python3-pyparsing python-pip python3-pip && \ - apt-get -qqy install gcc g++ && \ - apt-get -qq clean - -# Get miasm -ADD . /opt/miasm -RUN cd /opt/miasm && \ - pip install -r requirements.txt && \ - pip install -r optional_requirements.txt && \ - pip install . && \ - pip3 install -r requirements.txt && \ - pip3 install -r optional_requirements.txt && \ - pip3 install . +RUN apt-get update && apt-get install -y --no-install-recommends \ + gcc \ + g++ \ + python3 \ + python3-dev \ + python3-pip \ + python3-setuptools \ + python3-wheel \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /root/.cache + +WORKDIR /opt/miasm + +# Install Requirements +COPY requirements.txt /opt/miasm/requirements.txt +RUN pip3 install -r requirements.txt +COPY optional_requirements.txt /opt/miasm/optional_requirements.txt +RUN pip3 install -r optional_requirements.txt + +# Install miasm +COPY README.md /opt/miasm/README.md +COPY setup.py /opt/miasm/setup.py +COPY miasm /opt/miasm/miasm +RUN pip3 install . + +# Get everything else +COPY . /opt/miasm # Set user RUN useradd miasm && \ @@ -40,4 +53,4 @@ USER miasm # Default cmd WORKDIR /opt/miasm/test -CMD ["/bin/bash", "-c", "for v in 2 3; do /usr/bin/python$v test_all.py -m; done"] +CMD ["/bin/bash", "-c", "/usr/bin/python3 test_all.py -m"] |