Created
March 19, 2021 03:49
-
-
Save marcosnils/2420df24475a2dab02cd9188ac4148af to your computer and use it in GitHub Desktop.
Docker compose file to showcase profiles
This file contains hidden or 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
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