Skip to content

[Installation] Linux Instructions (Ubuntu 16.04)

Radu Raicea edited this page Oct 19, 2017 · 2 revisions

Switch to root

sudo -s

Install Docker

apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"

apt-get update

apt-get install docker-ce

Install Docker-Compose

curl -L https://github.com/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

Clone App

cd [path/where/you/want/to/clone]

git clone https://github.com/Radu-Raicea/Dockerized-Flask.git

Build App

cd Dockerized-Flask

docker-compose up --build

Check out http://localhost/

Restarting the App

Press CTRL-C to kill the app

docker-compose down

docker-compose up --build