From eda5b1348195a663c9b47e85d19c0e34ea630994 Mon Sep 17 00:00:00 2001 From: Martin Bohal Date: Wed, 29 Nov 2023 15:53:34 +0100 Subject: [PATCH] Remove unused `init-container.sh` as permissions are now set in `docker-compose.yml` --- docker/mkdocs/Dockerfile | 3 --- docker/mkdocs/init-container.sh | 10 ---------- 2 files changed, 13 deletions(-) delete mode 100644 docker/mkdocs/init-container.sh diff --git a/docker/mkdocs/Dockerfile b/docker/mkdocs/Dockerfile index 54a61772..77d051bd 100644 --- a/docker/mkdocs/Dockerfile +++ b/docker/mkdocs/Dockerfile @@ -1,6 +1,3 @@ FROM squidfunk/mkdocs-material:9 - RUN mkdir /workspace - -COPY ./init-container.sh /root/init-container.sh WORKDIR /workspace diff --git a/docker/mkdocs/init-container.sh b/docker/mkdocs/init-container.sh deleted file mode 100644 index 189fe6fd..00000000 --- a/docker/mkdocs/init-container.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env sh - -# This script is to be executed when the docker container is started - -# Set UID of user `node` on guest to match the UID of the user on the host machine -usermod -u $(stat -c "%u" $1) node -# Set GID of group `node` on guest to match the GID of the users primary group on the host machine -groupmod -g $(stat -c "%g" $1) node - -chown -R node /workspace