Files
snek/Makefile
T
retoor 9e9f317853 feat: replace runtime ubuntu image with custom snek_ubuntu and move r binary into Dockerfile
Add DockerfileUbuntu that pre-installs r binary and all required system dependencies, removing the need for per-container apt installs and binary copy from .bashrc. Update terminal view to use the new snek_ubuntu image instead of ubuntu:latest. Fix terminal session buffer check to use self.history instead of self.buffer. Add docker build target to Makefile.
2025-03-28 01:41:57 +00:00

26 lines
439 B
Makefile

PYTHON=./.venv/bin/python
PIP=./.venv/bin/pip
APP=./.venv/bin/snek.serve
GUNICORN=./.venv/bin/gunicorn
GUNICORN_WORKERS = 1
PORT = 8081
python:
$(PYTHON)
dump:
@$(PYTHON) -m snek.dump
build:
run:
$(GUNICORN) -w $(GUNICORN_WORKERS) -k aiohttp.worker.GunicornWebWorker snek.gunicorn:app --bind 0.0.0.0:$(PORT) --reload
install:
python3.12 -m venv .venv
$(PIP) install -e .
docker build -f DockerfileUbuntu -t snek_ubuntu .