I have several docker-compose.yml files that I want to use the same Dockerfile with, with a slight variation. So I want to pass an argument to that Dockerfile so that I can
Basically I missed declaring the arg in the Dockerfile.
# docker-compose.yml file version: '2' services: django: build: context: . dockerfile: ./docker/Dockerfile args: - SOMETHING=foo
# Dockerfile ARG SOMETHING RUN echo $SOMETHING
Shoutout to @Lauri for showing me the light.