update, and allow non-mount data

This commit is contained in:
q
2025-10-17 11:29:29 +03:00
parent fb5ce59582
commit 6bb6941287
7 changed files with 84 additions and 56 deletions

View File

@@ -1,36 +1,23 @@
FROM ubuntu:24.04
FROM debian:stable
COPY ./requirements.txt /requirements.txt
ENV DEBIAN_FRONTEND=noninteractive
ENV TMPDIR=/tmp
RUN apt-get update -yqq \
&& apt-get install -y --no-install-recommends \
curl \
sqlite3 \
tzdata \
git \
make \
python3-venv \
python3-pip \
curl \
tzdata \
sqlite3 \
python3-venv \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /data \
&& python3 -m venv /opt/venv \
&& . /opt/venv/bin/activate \
&& pip3 install --no-cache -r /requirements.txt \
&& rm -rf /root/.cache
ARG UUID
ARG UGID
ARG TZ
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN id ubuntu && userdel ubuntu
RUN groupadd -g $UGID user && \
useradd -u $UUID -g $UGID -ms /bin/bash user && \
mkdir -p /opt/venv && chown $UUID:$UGID /opt/venv
COPY ./requirements.txt /requirements.txt
COPY docker-builder.sh /
USER user
RUN bash /docker-builder.sh
COPY ./ /app
USER root
RUN chown -R $UUID:$UGID /app
USER user
WORKDIR /app
RUN chmod 777 /app /data
CMD bash /app/entrypoint.sh