Last active
December 18, 2020 19:32
-
-
Save eshnil2000/856c35a406360db0a3184950bcb24f74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#docker build -t ndc . | |
#docker run -it -v /var/run/docker.sock:/var/run/docker.sock -v /home/nick/docker-browser2:/tmp --privileged ndc | |
#https://tutorials.releaseworksacademy.com/learn/the-simple-way-to-run-docker-in-docker-for-ci | |
FROM node:latest | |
WORKDIR /usr/src/app | |
COPY test.js /usr/src/app | |
RUN apt update && apt install nano | |
RUN npm install --save-dev composefile | |
RUN npm install --save-dev docker-compose | |
RUN apt-get update && \ | |
apt-get -y install apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common && \ | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \ | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ | |
$(lsb_release -cs) \ | |
stable" && \ | |
apt-get update && \ | |
apt-get -y install docker-ce docker-compose | |
#Bash autocomplete | |
RUN curl https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker -o /etc/bash_completion.d/docker.sh | |
#RUN service docker start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment