EDIT 2:
I try to edit dockerfile (in several places)
FROM continuumio/miniconda3:4.10.3-alpine
MAINTAINER Sebastian Canzler <[email protected]>
LABEL authors="[email protected]" \
description="Docker image of ProteinPrompt - a tool to predict protein-protein interactions based on amino acid sequences."
RUN apt-get update && apt-get install -y git #<-----HERE
#Try This to get a bash in order to run 'source activate modfinder'
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN conda update -n base conda
COPY ./data/proteinPrompt.yml /
RUN conda env update --name root -f /proteinPrompt.yml && \
rm -rf /opt/conda/pkgs/*
ENV PATH /opt/conda/envs/proteinPrompt/bin:$PATH
# copy the proteinPrompt files
RUN mkdir /proteinPrompt/
COPY ./proteinPrompt/*py /proteinPrompt/
ENV PATH /proteinPrompt:$PATH
# get the random forest model from zenodo
RUN mkdir /model/
#COPY ./data/rf_human_750_inv.rev.pkl /model/random_forest.pkl
RUN wget https://zenodo.org/record/5708224/files/rf_human_750_inv.rev.pkl?download=1 -O /model/random_forest.pkl
COPY ./data/all.proteins.HUMAN.autocorrelation.pbz2 /model/all.proteins.HUMAN.autocorrelation.pbz2
# make proteinPrompt executable
ENTRYPOINT ["python", "/proteinPrompt/ProteinPrompt.py"]
#CMD ["-h"]
but there is a bash problem:
roboczy@marcin-B550-AORUS-ELITE-AX-V2:/home/marcin/ProteinPrompt$ docker build -t dockerfile .
[+] Building 1.6s (10/15)
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.23kB 0.0s
=> [internal] load metadata for docker.io/continuumio/miniconda3:4.10.3- 1.0s
=> [ 1/11] FROM docker.io/continuumio/miniconda3:4.10.3-alpine@sha256:e0 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 650B 0.0s
=> CACHED [ 2/11] RUN rm /bin/sh && ln -s /bin/bash /bin/sh 0.0s
=> CACHED [ 3/11] RUN conda update -n base conda 0.0s
=> CACHED [ 4/11] COPY ./data/proteinPrompt.yml / 0.0s
=> CACHED [ 5/11] RUN conda env update --name root -f /proteinPrompt.yml 0.0s
=> ERROR [ 6/11] RUN apt-get update && apt-get install -y git 0.5s
------
> [ 6/11] RUN apt-get update && apt-get install -y git:
#0 0.537 /bin/ash: apt-get: not found
------
WARNING: buildx: failed to read current commit information with git rev-parse --is-inside-work-tree
Dockerfile:15
--------------------
13 | rm -rf /opt/conda/pkgs/*
14 | ENV PATH /opt/conda/envs/proteinPrompt/bin:$PATH
15 | >>> RUN apt-get update && apt-get install -y git
16 |
17 | # copy the proteinPrompt files
--------------------
ERROR: failed to solve: process "/bin/ash -eo pipefail -c apt-get update && apt-get install -y git" did not complete successfully: exit code: 127