Use debian as base image.

This commit is contained in:
Alexis Lahouze 2018-11-25 22:09:49 +01:00
parent 6c965c7214
commit 73a122f7fb

View File

@ -1,32 +1,32 @@
FROM python:3.6-alpine as base FROM python:3.6-stretch as base
RUN apk add --no-cache --virtual .build-deps \ RUN aptitude update
git make gcc musl-dev asciidoc \ RUN aptitude install \
\ build-essentials git make gcc libtool libmhash-dev asciidoc
# Install deps
&& pip install snakeoil \ # Install deps
&& pip install git+https://github.com/dol-sen/pyDeComp \ RUN pip install snakeoil
\
# Clone catalyst repository RUN pip install git+https://github.com/dol-sen/pyDeComp
&& git clone https://anongit.gentoo.org/git/proj/catalyst.git catalyst \
\ # Clone catalyst repository
# Build and install catalyst RUN git clone https://anongit.gentoo.org/git/proj/catalyst.git catalyst
&& cd /catalyst \
&& make \ # Build and install catalyst
&& python -m setup install \ WORKDIR /catalyst
\ RUN make && python -m setup install
# Get shash
&& cd / \ # Get and uncompress shash
&& wget ftp://mcrypt.hellug.gr/pub/mcrypt/shash/shash-0.2.6.tar.gz \ WORKDIR /
&& tar xvzf shash-0.2.6.tar.gz \ RUN wget ftp://mcrypt.hellug.gr/pub/mcrypt/shash/shash-0.2.6.tar.gz \
&& cd shash-0.2.6 \ && tar xvzf shash-0.2.6.tar.gz
&& ./configure --build=x86_64 \
&& make && make install \ # Build shash
\ WORKDIR shash-0.2.6
# Cleanup RUN cp /usr/share/libtool/build-aux/missing ./ \
&& cd / \ && ./configure && make && make install \
&& rm -Rf catalyst \
&& apk del .build-deps WORKDIR /
FROM python:3.6-alpin as base FROM python:3.6-alpin as base