newer ubuntu

This commit is contained in:
Q
2025-01-23 10:54:44 +02:00
parent 934f38f3ff
commit f4bdbed05f

View File

@@ -1,4 +1,4 @@
FROM ubuntu:22.04 FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
@@ -18,6 +18,7 @@ ARG UUID
ARG UGID ARG UGID
ARG TZ ARG TZ
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN id ubuntu && userdel ubuntu
RUN groupadd -g $UGID user && \ RUN groupadd -g $UGID user && \
useradd -u $UUID -g $UGID -ms /bin/bash user && \ useradd -u $UUID -g $UGID -ms /bin/bash user && \
mkdir -p /opt/venv && chown $UUID:$UGID /opt/venv mkdir -p /opt/venv && chown $UUID:$UGID /opt/venv