Skip to content

Commit 546f043

Browse files
authored
Add back home folder information (#35)
* Add back home folder information * Add sed command to set user home dir in passwd file for ssh/borgbackup issue.
1 parent 7d735cc commit 546f043

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ 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
11-
RUN del-pkg build-dependencies
11+
RUN del-pkg build-dependencies
1212

1313
# Copy the start script and force permissions just in case
1414
COPY --chmod=755 rootfs/ /

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)