File size: 652 Bytes
9bf26a6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
build:
docker build -t screeni-py .
run:
docker run -d --name screeni-py -p 8501:8501 screeni-py
interactive-run:
docker run -p 8501:8501 screeni-py
shell:
docker run -it --entrypoint /bin/bash screeni-py
stop-container:
@if [ "$(shell docker ps -q -f name=screeni-py)" ]; then \
docker stop screeni-py; \
else \
echo "Container screeni-py is not running."; \
fi
remove-container:
@if [ "$(shell docker ps -a -q -f name=screeni-py)" ]; then \
docker rm screeni-py; \
else \
echo "Container screeni-py does not exist."; \
fi
system-clean:
docker system prune --force
rebuild: stop-container remove-container build system-clean
|