-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (23 loc) · 707 Bytes
/
Makefile
File metadata and controls
27 lines (23 loc) · 707 Bytes
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
# ----- ANY -----
docker-build:
@echo "generating project requirements..."
@poetry export --without-hashes --format=requirements.txt > app/requirements.txt
@echo "building Docker image ...";
@docker build -t pedroegg/cloud-selenium:latest .
# ---------------
# ----- PROD -----
docker-push:
@echo "pushing Docker image to registry...";
@docker push pedroegg/cloud-selenium:latest
# ----------------
# ----- DEV ------
install:
@sudo apt-get install pipx
@pipx ensurepath
@pipx install poetry==2.0.1
@poetry install
run-dev:
@cd app; ENV="development" uvicorn api.main:app --host 0.0.0.0 --port 8000
run-docker:
@docker run --rm -p 8000:8000 pedroegg/cloud-selenium:latest
# ----------------