Skip to content

Commit e66279e

Browse files
committed
Add sed command to set user home dir in passwd file for ssh/borgbackup issue.
1 parent 77c1509 commit e66279e

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM jlesage/baseimage-gui:alpine-3.22-v4
44
RUN apk upgrade --no-cache
55
RUN add-pkg openssh-client rsync fuse python3 py3-pip py3-qt6 zstd-libs lz4-libs openssl \
66
qt6-qtbase py3-bcrypt py3-pynacl py3-peewee py3-psutil py3-wheel py3-cryptography fuse3 fuse3-libs \
7-
mesa-dri-gallium font-croscore py3-platformdirs libxxhash firefox-esr
7+
mesa-dri-gallium font-croscore py3-platformdirs libxxhash firefox-esr
88
## Buld requirements which are deleted in same transaction so they don't impact image
99
RUN add-pkg --virtual build-dependencies py3-pkgconfig python3-dev py3-virtualenv openssl-dev zstd-dev acl-dev lz4-dev build-base qt6-qtbase-dev fuse-dev fuse3-dev xxhash-dev
1010
RUN pip3 install --break-system-packages borgbackup vorta pyfuse3
@@ -13,10 +13,6 @@ RUN del-pkg build-dependencies
1313
# Copy the start script and force permissions just in case
1414
COPY --chmod=755 rootfs/ /
1515

16-
## Configure user home directory
17-
RUN mkdir -p /config
18-
ENV HOME=/config
19-
2016
# don't run as root
2117
ENV USER_ID=10
2218
ENV GROUP_ID=1000

rootfs/etc/cont-init.d/50-init.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ mkdir -p /config/xdg/cache
55
mkdir -p /config/xdg/data
66
mkdir -p /config/.config/autostart
77

8+
# Configure user home directory
9+
sed -i -r s/app\:\:\([0-9]+\):\([0-9]+\)::[^:]+:\(.+\)/app\:\:\\1\:\\2\:\:\\/config\:\\3/ /etc/passwd
810

9-
10-
#ls -al /etc/
11-
#ls -al /etc/cont-init.d/
12-
#ls -al /etc/services.d/

0 commit comments

Comments
 (0)