Skip to content

Instantly share code, notes, and snippets.

@mateothegreat
Last active July 15, 2016 17:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mateothegreat/a967e1778204926a719375777ff1366c to your computer and use it in GitHub Desktop.
Save mateothegreat/a967e1778204926a719375777ff1366c to your computer and use it in GitHub Desktop.
Dockerfile & docker-compose.yml Snippets

Dockerfile & docker-compose.yml Snippets

Define your app’s environment with a Dockerfile so it can be reproduced anywhere.

####Build, Ship, Run. An open platform for distributed applications for developers and sysadmins.

Define the services that make up your app in docker-compose.yml so they can be run together in an isolated environment. Lastly, run docker-compose up and Compose will start and run your entire app. -https://docs.docker.com/compose

RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:ubuntu-lxc/lxd-stable
RUN apt-get update && apt-get install -y \
build-essential \
ca-certificates \
curl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment