Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added makefile #234

Merged
merged 12 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ stock*.pkl
results*.pkl
*.spec
.DS_Store
.history/
30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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
Loading