Skip to content

Instantly share code, notes, and snippets.

@marcosnils
Created March 19, 2021 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcosnils/2420df24475a2dab02cd9188ac4148af to your computer and use it in GitHub Desktop.
Save marcosnils/2420df24475a2dab02cd9188ac4148af to your computer and use it in GitHub Desktop.
Docker compose file to showcase profiles
version: '3'
services:
site:
build:
context: .
dockerfile: Dockerfile.build
volumes:
- ./:/srv/jekyll
ports:
- 4000:4000
command: ["jekyll", "serve", "-d", "./docs"]
build:
profiles: ["build"]
build:
context: .
dockerfile: Dockerfile.build
volumes:
- ./:/srv/jekyll
command: ["jekyll", "build", "-d", "./docs"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment