Show IP, a bit ascii art!

This commit is contained in:
Torsten Raudssus 2024-02-11 04:13:58 +01:00
parent 6f0ffb7a23
commit 0aaa3d2ff3
2 changed files with 14 additions and 3 deletions

View file

@ -1,4 +1,4 @@
FROM node:21-bookworm FROM node:20-bookworm
ARG SRV_UID="1000" ARG SRV_UID="1000"
ARG SRV_GID="100" ARG SRV_GID="100"
@ -14,10 +14,10 @@ RUN apt-get update -y && apt-get install -y jq $SRV_APT_GET_INSTALL \
RUN id $SRV_UID || useradd -s /bin/bash -d /app -u $SRV_UID -g $SRV_GID srv RUN id $SRV_UID || useradd -s /bin/bash -d /app -u $SRV_UID -g $SRV_GID srv
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
RUN npm install -g ember-cli@5.6.0 npm@10.4.0 RUN npm install -g ember-cli@5.6.0 npm@10.4.0
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
USER $SRV_UID:$SRV_GID USER $SRV_UID:$SRV_GID
ENV PATH "/app/node_modules/.bin:$PATH" ENV PATH "/app/node_modules/.bin:$PATH"

View file

@ -2,6 +2,17 @@
export IP=$( hostname -i ) export IP=$( hostname -i )
cat <<EOF
__ _
___ _ ____ __ / / _ __ ___ __| | ___
/ __| '__\ \ / / / / | '_ \ / _ \ / _\` |/ _ \\
\__ \ | \ V / / / | | | | (_) | (_| | __/
|___/_| \_/ /_/ |_| |_|\___/ \__,_|\___|
------------------------------------------------
IP: $IP
EOF
if [[ ! -d "node_modules" ]]; then if [[ ! -d "node_modules" ]]; then
echo "node_modules does not exist." echo "node_modules does not exist."
if [[ -f "package.json" ]]; then if [[ -f "package.json" ]]; then