Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-ralphex-fe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
paths:
- 'ralphex-fe/Dockerfile'
- 'ralphex-fe/files/**'
- 'ralphex-fe/*.sh'
workflow_dispatch:

permissions:
Expand Down
4 changes: 2 additions & 2 deletions ralphex-fe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ ENV PATH="${PATH}:${GOROOT}/bin:${GOPATH}/bin"
# Adapted from: https://github.com/umputun/baseimage/blob/master/base.alpine/files/init.sh
# /srv/init.sh — credential copier run before main command
# Source: https://github.com/umputun/ralphex/blob/master/scripts/internal/init-docker.sh
COPY files/init.sh /init.sh
COPY files/init-docker.sh /srv/init.sh
COPY init.sh /init.sh
COPY init-docker.sh /srv/init.sh
RUN chmod +x /init.sh /srv/init.sh

WORKDIR /workspace
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions ralphex-fe/files/init.sh → ralphex-fe/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ if [ "${uid}" -eq 0 ]; then
fi

chown -R app:app /srv
# Always fix /home/app itself (non-recursive) so the app user can create
# subdirectories even when APP_UID is remapped and SKIP_HOME_CHOWN=1.
chown app:app /home/app
if [ "${SKIP_HOME_CHOWN}" != "1" ]; then
chown -R app:app /home/app
fi
Expand Down