Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anaconda not available while building docker image #2

Open
WurmD opened this issue Dec 12, 2020 · 1 comment
Open

Anaconda not available while building docker image #2

WurmD opened this issue Dec 12, 2020 · 1 comment

Comments

@WurmD
Copy link

WurmD commented Dec 12, 2020

(base) dario@GPU10:~/falcon-prediction-app$ sudo docker build -t falcon-prediction-app .
Sending build context to Docker daemon  55.72MB
Step 1/20 : FROM nginx:stable-alpine
 ---> a8054a07a2ce
Step 2/20 : LABEL maintainer="dat.tran@idealo.de"
 ---> Using cache
 ---> f5ebfbd510b3
Step 3/20 : RUN apk --update --repository http://dl-4.alpinelinux.org/alpine/edge/community add     bash     git     curl     ca-certificates     bzip2     unzip     sudo     libstdc++     glib     libxext     libxrender     tini     supervisor     && curl -L "https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.25-r0/glibc-2.25-r0.apk" -o /tmp/glibc.apk     && curl -L "https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.25-r0/glibc-bin-2.25-r0.apk" -o /tmp/glibc-bin.apk     && curl -L "https://github.com/andyshinn/alpine-pkg-glibc/releases/download/2.25-r0/glibc-i18n-2.25-r0.apk" -o /tmp/glibc-i18n.apk     && apk add --allow-untrusted /tmp/glibc*.apk     && /usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib     && /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8     && rm -rf /tmp/glibc*apk /var/cache/apk/*
 ---> Using cache
 ---> 07017f100464
Step 4/20 : RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh &&     curl https://repo.continuum.io/miniconda/Miniconda3-4.3.27-Linux-x86_64.sh -o ~/miniconda.sh &&     /bin/bash ~/miniconda.sh -f -b -p /opt/conda &&     rm ~/miniconda.sh
 ---> Using cache
 ---> d8138ae2d9a6
Step 5/20 : ENV PATH /opt/conda/bin:$PATH
 ---> Using cache
 ---> 58b1b118d389
Step 6/20 : RUN mkdir /run/nginx/     && mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.bak
 ---> Using cache
 ---> 8b28099f4891
Step 7/20 : ADD conf/nginx.conf /etc/nginx/conf.d/
 ---> Using cache
 ---> 9c7a9cdd31fc
Step 8/20 : ADD conf/supervisor.ini /etc/supervisor.d/
 ---> Using cache
 ---> d7d85fe47ebf
Step 9/20 : COPY environment.yml /
 ---> Using cache
 ---> de179ad7f795
Step 10/20 : RUN conda env create -f=environment.yml -n myapp
 ---> Running in d4f18c13b5e1
/bin/sh: conda: not found
The command '/bin/sh -c conda env create -f=environment.yml -n myapp' returned a non-zero code: 127
@pbamotra
Copy link

pbamotra commented Apr 1, 2021

@WurmD make these changes in Miniconda step

 26 RUN INSTALL_PATH=~/anaconda \
 27     && wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh \
 28     && bash Miniconda2-latest* -fbp $INSTALL_PATH
 29 
 30 ENV PATH=/root/anaconda/bin:$PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants