Maescool / docker-Cloudlog

Dockerized Cloudlog amateur radio logging application
19 stars 6 forks source link

Chage Docker base-image to Ubuntu 22.04 #5

Closed hirschnase closed 8 months ago

hirschnase commented 1 year ago

I'd like to suggest to change the Ubuntu base image to 22.04. I experienced some trouble with the reachability of some of the ubuntu Archive servers which went away after chaning the base to 22.04. Also, it's newer and longer supported.

Necessary changes to the Dockerfile are only two lines (line 1 and line 9):

FROM ubuntu:22.04

ENV PHPVER 7.4

# Update and install ubuntu packages
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade && \
    DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common locales

RUN add-apt-repository ppa:ondrej/php --yes && apt update

RUN DEBIAN_FRONTEND=noninteractive apt-get -y install supervisor cron nginx php$PHPVER php$PHPVER-cli php$PHPVER-fpm php$PHPVER-mbstring php$PHPVER-xml php$PHPVER-curl php$PHPVER-gd php$PHPVER-mysql php-redis php$PHPVER-readline mariadb-client wget git unzip curl vim
Wireheadbe commented 8 months ago

Going to:

FROM ubuntu:22.04

ENV PHPVER 8.1

Doesn't require any out-of-tree PPA's.

Maescool commented 8 months ago

Fixed and merged in pull #8