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.
26 lines
439 B
Makefile
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 .
|
|
|
|
|