Skip to content

Instantly share code, notes, and snippets.

@rfay
Last active March 12, 2023 16:50
Show Gist options
  • Save rfay/1b1becb2079b4d9dd1ae486eea86a863 to your computer and use it in GitHub Desktop.
Save rfay/1b1becb2079b4d9dd1ae486eea86a863 to your computer and use it in GitHub Desktop.
Simple docker-compose.yaml + Dockerfile with build stage; Put these in a directory and `docker-compose build` in this directory will leave untagged "none" image
services:
test:
image: debian
build:
context: .
dockerfile: Dockerfile
command: ls
FROM debian
RUN ls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment