-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
drui9
committed
Jun 26, 2024
1 parent
b7a6b01
commit 5667e8f
Showing
9 changed files
with
196 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM python:3.12-alpine | ||
|
||
RUN apk update && apk add gcc musl-dev python3-dev libffi-dev openssl-dev cargo make | ||
RUN addgroup -S autogram && adduser -S autogram -G autogram | ||
|
||
USER autogram | ||
WORKDIR /home/autogram | ||
|
||
COPY . . | ||
RUN pip install . | ||
|
||
CMD ["python3", "start.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
env := .venv | ||
deps := requirements.txt | ||
|
||
run: | ||
@clear;./$(env)/bin/python start.py | ||
|
||
build: | ||
@./$(env)/bin/pip install build;./$(env)/bin/python -m build | ||
|
||
clean: | ||
@rm -rf dist build *.egg-info **/__pycache__/ | ||
|
||
stable: clean build | ||
git push;git checkout releases;git merge main;git push;twine upload dist/*;git checkout main; | ||
|
||
$(env): $(deps) | ||
$(env): | ||
python -m venv $@ | ||
|
||
install: $(env) | ||
@./$(env)/bin/pip install -r $(deps) | ||
@./$(env)/bin/pip install -e . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.