spl147 Posted February 19, 2017 Share Posted February 19, 2017 this is my dockerfile: FROM phusion/baseimage:0.9.15 ######################################### ## ENVIRONMENTAL CONFIG ## ######################################### # Set correct environment variables ENV DEBIAN_FRONTEND noninteractive ENV HOME /root ENV LC_ALL C.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US.UTF-8 ENV PATH $PATH ######################################### ## Copy Files ## ######################################### ADD hlks /root/ RUN chmod +x /root/setup.sh ######################################### ## RUN INSTALL SCRIPT ## ######################################### ADD install.sh /tmp/ RUN chmod +x /tmp/install.sh && /tmp/install.sh ################################################## ## Start ## ################################################## USER root EXPOSE 80 443 ADD run.sh /root/run.sh VOLUME ["/root/hlks”] CMD ["/root/run.sh"] running this from the command prompt: docker build -t hlks . and this is the output: docker build -t hlks . Sending build context to Docker daemon 39.94 kB Step 1 : FROM phusion/baseimage:0.9.15 ---> 4cb79d39875e Step 2 : ENV DEBIAN_FRONTEND noninteractive ---> Using cache ---> ee940d0177bb Step 3 : ENV HOME /root ---> Using cache ---> 7dde0d8e7607 Step 4 : ENV LC_ALL C.UTF-8 ---> Using cache ---> 4c2f4fadeb73 Step 5 : ENV LANG en_US.UTF-8 ---> Using cache ---> 96e0dac70318 Step 6 : ENV LANGUAGE en_US.UTF-8 ---> Using cache ---> f6a4d5e02b06 Step 7 : ENV PATH $PATH ---> Using cache ---> 11c847f5f446 Step 8 : ADD hlks /root/ ---> Using cache ---> 5cd314931173 Step 9 : RUN chmod +x /root/setup.sh ---> Using cache ---> 71c7b1ad9689 Step 10 : ADD install.sh /tmp/ ---> Using cache ---> 2a8a1bf309dc Step 11 : RUN chmod +x /tmp/install.sh && /tmp/install.sh ---> Running in bd2cbcc2279e /bin/sh: 1: /tmp/install.sh: not found The command '/bin/sh -c chmod +x /tmp/install.sh && /tmp/install.sh' returned a non-zero code: 127 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.