Dockerfile 1.21 KB
Newer Older
1
2
#FROM python:slim
FROM python@sha256:ca78039cbd3772addb9179953bbf8fe71b50d4824b192e901d312720f5902b22
Martin Zurowietz's avatar
Martin Zurowietz committed
3
4
LABEL org.opencontainers.image.authors="Martin Zurowietz <martin@cebitec.uni-bielefeld.de>"

5
6
7
8
9
10
11
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/*
Martin Zurowietz's avatar
Martin Zurowietz committed
12
13

ARG VSEARCH_VERSION="2.21.1"
14
RUN apt-get update \
Martin Zurowietz's avatar
Martin Zurowietz committed
15
    && apt-get install --no-install-recommends -y \
16
17
18
19
20
21
22
23
24
25
26
27
28
29
        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/*
Martin Zurowietz's avatar
Martin Zurowietz committed
30
31
32
33
34

RUN mkdir /workspace

WORKDIR /workspace

35
ENTRYPOINT apscale