Skip to content

Replace Django CI with Sanic CI and update Docker configuration#7

Merged
diorwave merged 1 commit into
mainfrom
ci/fix-stack-and-docker
Jun 13, 2026
Merged

Replace Django CI with Sanic CI and update Docker configuration#7
diorwave merged 1 commit into
mainfrom
ci/fix-stack-and-docker

Conversation

@diorwave

Copy link
Copy Markdown
Owner

This pull request adds Docker support and sets up modern CI/CD workflows for the project. It introduces a Dockerfile and entrypoint script for containerization, configures GitHub Actions for Python testing and Docker image publishing, and cleans up legacy workflow files. The changes make the project easier to build, test, and deploy in a standardized and automated way.

Docker support and containerization:

  • Added a new Dockerfile to build a minimal, production-ready Python 3.13 container image for the app, with best practices like unprivileged user, environment variable configuration, and exclusion of secrets from the image.
  • Added docker-entrypoint.sh script to securely launch the app, requiring the PASSWORD environment variable at runtime and allowing host/port overrides.
  • Created a .dockerignore file to keep build context small and secure by excluding unnecessary files, secrets, and development artifacts from Docker images.

CI/CD workflow improvements:

  • Added .github/workflows/ci.yml for Python test automation on pushes and PRs to main, testing across Python 3.9–3.13 with pip caching for efficiency.
  • Added .github/workflows/docker-publish.yml to automatically build and publish Docker images to GitHub Container Registry (GHCR) on version tags, with semantic versioning and caching.
  • Removed the obsolete .github/workflows/django.yml workflow, which targeted older Python versions and a Django-specific test command no longer relevant to the project.

…Python 3.10-3.13) and a tag-triggered GHCR Docker build, add a Dockerfile that injects the server password at run time, and re-encode requirements.txt from UTF-16 to UTF-8.
@diorwave diorwave force-pushed the ci/fix-stack-and-docker branch from 9c7b2f2 to 01635ce Compare June 13, 2026 16:33

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9c7b2f27c7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml Outdated
@diorwave diorwave merged commit df27e4f into main Jun 13, 2026
4 checks passed
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