Skip to content

fix: update/streamline Dockerfile#680

Open
DataWearsAHood wants to merge 5 commits into
cairis-platform:masterfrom
DataWearsAHood:fix/dockerfile-build
Open

fix: update/streamline Dockerfile#680
DataWearsAHood wants to merge 5 commits into
cairis-platform:masterfrom
DataWearsAHood:fix/dockerfile-build

Conversation

@DataWearsAHood

Copy link
Copy Markdown

Summary

  • Replace deprecated MAINTAINER with LABEL maintainer=...
  • Reduce Dockerfile layers by merging apt install, COPY, ENV, and cleanup steps
  • Restore truncated Apache license header in cairis/bin/installUI.sh
  • Replace broken apt-key Yarn install with npm install -g yarn in installUI.sh; copy the fixed script into the image after cloning CAIRIS
  • Pin base image to debian:bookworm-slim (Python 3.11) because CAIRIS still imports imghdr, which was removed in Python 3.13+ on ubuntu:latest

Test plan

  • docker build -t cairis:local . completes successfully
  • Container starts with MySQL and serves login page on mapped port
  • Login works after creating a user via /addAccount.sh
  • Upstream maintainer review of base image change (ubuntu:latestdebian:okworm-slim)

Co-authored-by AI

Merge apt-get, copy, env, mkdir, and cleanup run steps to cut image layers.

Co-authored-by AI
Copy the fixed script into the image after cloning CAIRIS and split the
UI build run step from git cleanup.

Co-authored-by AI
CAIRIS imports imghdr, which was removed in Python 3.13+. Switch from
ubuntu:latest to debian:bookworm-slim and adjust apt packages accordingly.

Co-authored-by AI
@DataWearsAHood DataWearsAHood changed the title fix: harden Dockerfile build for modern Debian/Ubuntu fix: update/streamline Dockerfile Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant