From 409473acc097b8271fe00a88b6ce97e59489dfbd Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Thu, 4 Jun 2020 10:17:57 -0400 Subject: [PATCH] Python 2 has been removed from Alpine so install Python 3 deps in Alpine (#1473) * Closes #1472 ``` docker build --no-cache -t ctfd . docker run -p 8000:8000 -it ctfd ``` works for me --- CHANGELOG.md | 1 + Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54b6ce3d..ef4eaa4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ **Deployment** * `docker-compose` now provides a basic nginx configuration and deploys nginx on port 80 +* `Dockerfile` now installs `python3` and `python3-dev` instead of `python` and `python-dev` because Alpine no longer provides those dependencies **Miscellaneous** * The `get_config` and `get_page` config utilities now use SQLAlchemy Core instead of SQLAlchemy ORM for slight speedups diff --git a/Dockerfile b/Dockerfile index 0d0553ff..91f8ed2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,8 @@ RUN mkdir -p /opt/CTFd /var/log/CTFd /var/uploads RUN apk update && \ apk add --no-cache \ - python \ - python-dev \ + python3 \ + python3-dev \ linux-headers \ libffi-dev \ gcc \