Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
forwardcomputers committed Jan 18, 2024
1 parent b51a945 commit 56a988e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions base_debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ ENV USER="ali" \
PUID="1001" \
PGID="1001" \
APP_DIR="/app" \
CONFIG_DIR="/config" \
# CONFIG_DIR="/config" \
TZ="America/Toronto" \
_CHAR="UTF-8" \
_LANG="en" \
_CNTRY="US"
ENV XDG_CONFIG_HOME=${CONFIG_DIR}/.config \
XDG_CACHE_HOME=${CONFIG_DIR}/.cache \
XDG_DATA_HOME=${CONFIG_DIR}/.local/share \
LANG=${_LANG}_${_CNTRY}.${_CHAR} \
# ENV XDG_CONFIG_HOME=${CONFIG_DIR}/.config \
# XDG_CACHE_HOME=${CONFIG_DIR}/.cache \
# XDG_DATA_HOME=${CONFIG_DIR}/.local/share \
ENV LANG=${_LANG}_${_CNTRY}.${_CHAR} \
LANGUAGE=${_LANG} \
LC_ALL=${_LANG}_${_CNTRY}.${_CHAR}
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 \
Expand Down Expand Up @@ -75,11 +75,15 @@ RUN set -e \
# Create timezone
&& ln -snf "/usr/share/zoneinfo/${TZ}" /etc/localtime \
&& echo "${TZ}" > /etc/timezone \
# Create folders
&& echo mkdir -p {"${APP_DIR}","${CONFIG_DIR}"} | bash \
# Create user
&& useradd -U -d "${CONFIG_DIR}" -s /bin/false -u "${PUID}" "${USER}" \
&& useradd -U -s /bin/false -u "${PUID}" "${USER}" \
&& usermod -G users "${USER}" \
# Create folders
# && HOME_DIR=$( awk -F: -v v=$_qaz '{if ($1==v) print $6}' /etc/passwd ) \
# && XDG_CONFIG_HOME=${CONFIG_DIR}/.config \
# && XDG_CACHE_HOME=${CONFIG_DIR}/.cache \
# && XDG_DATA_HOME=${CONFIG_DIR}/.local/share \
# && echo mkdir -p {"${APP_DIR}","${CONFIG_DIR}"} | bash \
#
# Clean-up
#
Expand Down

0 comments on commit 56a988e

Please sign in to comment.