Allow overriding Docker base image

This commit is contained in:
jocayn
2026-06-13 12:22:13 +08:00
parent 845c3dece3
commit a7d435e59e
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
FROM python:3.12-slim ARG PYTHON_IMAGE=python:3.12-slim
FROM ${PYTHON_IMAGE}
LABEL maintainer='<author>' LABEL maintainer='<author>'
LABEL version='0.0.0-dev.0-build.0' LABEL version='0.0.0-dev.0-build.0'
+4 -2
View File
@@ -1,7 +1,9 @@
version: '3'
services: services:
webssh: webssh:
build: . build:
context: .
args:
PYTHON_IMAGE: ${PYTHON_IMAGE:-python:3.12-slim}
restart: unless-stopped restart: unless-stopped
ports: ports:
- "8888:8888" - "8888:8888"