@@ -7,7 +7,6 @@ ARG RCLONE_VERSION=current
7
7
# Arguments to define the user running the container
8
8
ARG SEL_USER=seluser
9
9
ARG SEL_GROUP=${SEL_USER}
10
- ARG SEL_PASSWD=secret
11
10
ARG HOME=/home/${SEL_USER}
12
11
ARG UID=1200
13
12
ARG GID=1201
@@ -34,7 +33,7 @@ ENV DEBIAN_FRONTEND=noninteractive \
34
33
RUN apt-get -qqy update \
35
34
&& apt-get upgrade -yq \
36
35
&& apt-get -qqy --no-install-recommends install \
37
- supervisor x11-xserver-utils x11-utils libxcb1-dev curl jq python3-pip tzdata acl unzip python3-psutil \
36
+ supervisor x11-xserver-utils x11-utils libxcb1-dev curl jq python3-pip tzdata acl unzip python3-psutil python3-setuptools \
38
37
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
39
38
40
39
# ===================
@@ -57,7 +56,8 @@ ENV SEL_USER=${SEL_USER} \
57
56
# ========================================
58
57
# Add normal user and group with passwordless sudo
59
58
# ========================================
60
- RUN groupadd ${SEL_GROUP} \
59
+ RUN --mount=type=secret,id=SEL_PASSWD \
60
+ groupadd ${SEL_GROUP} \
61
61
--gid ${SEL_GID} \
62
62
&& useradd ${SEL_USER} \
63
63
--create-home \
@@ -66,7 +66,7 @@ RUN groupadd ${SEL_GROUP} \
66
66
--uid ${SEL_UID} \
67
67
&& usermod -a -G sudo ${SEL_USER} \
68
68
&& echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers \
69
- && echo "${SEL_USER}:${ SEL_PASSWD} " | chpasswd
69
+ && echo "${SEL_USER}:$(cat /run/secrets/ SEL_PASSWD) " | chpasswd
70
70
71
71
# ======================================
72
72
# Add Supervisor configuration files
@@ -83,9 +83,8 @@ RUN curl -fLo /tmp/rclone.zip https://downloads.rclone.org/rclone-${RCLONE_VERSI
83
83
&& rm -rf /tmp/rclone-*
84
84
COPY --chown="${SEL_UID}:${SEL_GID}" upload.sh upload.conf /opt/bin/
85
85
ENV SE_VIDEO_UPLOAD_ENABLED=false \
86
- SE_UPLOAD_DESTINATION_PREFIX="" \
87
86
SE_VIDEO_INTERNAL_UPLOAD=false \
88
- UPLOAD_OPTS= "-P "
87
+ SE_UPLOAD_DESTINATION_PREFIX= " "
89
88
90
89
RUN mkdir -p /var/run/supervisor /var/log/supervisor ${VIDEO_FOLDER} \
91
90
&& chown -R ${SEL_USER}:${SEL_GROUP} /var/run/supervisor /var/log/supervisor ${VIDEO_FOLDER} ${HOME} \
0 commit comments