From b8499e2ce615546d6bfbbcdd2b37496d2a0c9c8d Mon Sep 17 00:00:00 2001 From: protokey Date: Mon, 12 Oct 2026 14:11:09 +0400 Subject: [PATCH] chore: updated --- .gitignore | 1 + Makefile | 7 ++++++- docker-compose.yml | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7bc9a09..fed0135 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ __pycache__/ wheels/ docs/*.bkp docs/*.dtmp + diff --git a/Makefile b/Makefile index 2024224..bc57b1e 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,12 @@ PYTHON := $(VENV)/bin/python PIP := $(VENV)/bin/pip WHEELS_DIR := wheels REQUIREMENTS := requirements.txt +ver ?= latest MAKECMDGOALS_TARGETS := install freeze wheels sync sync-offline clean help PKG := $(filter-out $(MAKECMDGOALS_TARGETS),$(MAKECMDGOALS)) -.PHONY: install freeze wheels sync sync-offline clean help venv +.PHONY: install freeze wheels sync sync-offline clean help venv build help: @echo "make install [ ...] - установить пакет(ы) в $(VENV), обновить $(REQUIREMENTS), собрать wheel в $(WHEELS_DIR)/" @@ -46,6 +47,10 @@ wheels: venv clean: rm -rf $(WHEELS_DIR) +build: + @echo "build an application" + docker build -t robotex:$(ver) . + # позволяет передавать имя пакета как аргумент: make install redis %: @: diff --git a/docker-compose.yml b/docker-compose.yml index 658300e..e259f0b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ services: api: build: . - image: robotex-api + image: robotex:latest restart: unless-stopped ports: - "${API_PORT:-8000}:8000"