Skip to content

Commit

Permalink
deps: upgrade base image to noble
Browse files Browse the repository at this point in the history
- install python packages into venv as python 3.12 becomes more strict
  about global package installs

resolves comses/planning#220
  • Loading branch information
alee committed Dec 12, 2024
1 parent 96e7743 commit fbd83e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM comses/base:jammy
FROM comses/base:noble

ARG REQUIREMENTS_FILE=requirements-dev.txt
ARG RUN_SCRIPT=./deploy/dev.sh
ARG UBUNTU_MIRROR=archive.ubuntu.com
ENV VIRTUAL_ENV=/home/comses/virtualenvs/comses.venv
ENV PATH="${VIRTUAL_ENV}/bin:$PATH"

RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down Expand Up @@ -39,6 +41,7 @@ RUN --mount=type=cache,target=/var/lib/apt,sharing=locked \
unrar-free \
unzip \
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 1000 \
&& python -m venv ${VIRTUAL_ENV} \
&& apt-get upgrade -q -y -o Dpkg::Options::="--force-confold" \
&& mkdir -p /etc/service/django \
&& touch /etc/service/django/run /etc/postgresql-backup-pre \
Expand Down

0 comments on commit fbd83e3

Please sign in to comment.