62df4ec3de
Switch Dockerfile from CMD to ENTRYPOINT so that flags can be passed to the makemigrations command This is required in cases where we need to use django's makemigrations --merge to merge two migrations.
4 lines
176 B
Bash
Executable file
4 lines
176 B
Bash
Executable file
#!/bin/bash -x
|
|
docker image build -f docker/Dockerfile.makemigrations -t makemigrations .
|
|
docker run -it --env-file=docker/laptop-mode-env -v $(pwd):/source makemigrations $*
|
|
|