Commit 50797b3c authored by Martin Zurowietz's avatar Martin Zurowietz
Browse files

Change base image from alpine to slim

parent 274b2d59
#FROM python:alpine
FROM python@sha256:97725c6081f5670080322188827ef5cd95325b8c69e401047f0fa0c21910042d
#FROM python:slim
FROM python@sha256:ca78039cbd3772addb9179953bbf8fe71b50d4824b192e901d312720f5902b22
LABEL org.opencontainers.image.authors="Martin Zurowietz <martin@cebitec.uni-bielefeld.de>"
RUN apk add --no-cache --virtual .build-deps \
build-base \
linux-headers \
cmake \
cargo \
&& apk add \
rust \
apache-arrow \
&& MAKEFLAGS="-j$(nproc)" pip install --no-cache-dir apscale \
&& apk del --purge .build-deps
RUN apt-get update \
&& apt-get install --no-install-recommends -y build-essential \
&& MAKEFLAGS="-j$(nproc)" pip install --no-cache-dir apscale \
&& apt-get purge -y build-essential \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
ARG VSEARCH_VERSION="2.21.1"
RUN apk add --no-cache --virtual .build-deps \
build-base \
zlib-dev \
bzip2-dev \
curl \
autoconf \
automake \
&& apk add \
zlib \
bzip2 \
&& cd /tmp \
&& curl -LO https://github.com/torognes/vsearch/archive/v$VSEARCH_VERSION.tar.gz \
&& tar xzf v$VSEARCH_VERSION.tar.gz \
&& cd vsearch-$VSEARCH_VERSION \
&& ./autogen.sh \
&& ./configure CFLAGS="-O3" CXXFLAGS="-O3" \
&& make -j $(nproc) \
&& make install \
&& cd / \
&& rm -rf /tmp/vsearch-* \
&& apk del --purge .build-deps
RUN apt-get update \
&& apt-get install -y \
curl \
zlib1g-dev \
libbz2-dev \
&& cd /tmp \
&& curl -LO https://github.com/torognes/vsearch/releases/download/v$VSEARCH_VERSION/vsearch-$VSEARCH_VERSION-linux-x86_64.tar.gz \
&& tar xzf vsearch-$VSEARCH_VERSION-linux-x86_64.tar.gz \
&& mv vsearch-$VSEARCH_VERSION-linux-x86_64/bin/vsearch /usr/local/bin \
&& mv vsearch-$VSEARCH_VERSION-linux-x86_64/man/vsearch.1 /usr/local/bin \
&& cd / \
&& rm -r /tmp/vsearch-* \
&& apt-get purge -y curl \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
RUN mkdir /workspace
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment