Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node: | ||
build: docker/mkdocs | ||
volumes: | ||
- .:/workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM debian:latest | ||
|
||
RUN apt-get update && apt-get install -y python-pip | ||
RUN pip install mkdocs | ||
RUN mkdir /workspace | ||
RUN useradd -s /bin/bash docker-container-user | ||
|
||
|
||
COPY ./init-container.sh /root/init-container.sh | ||
WORKDIR /workspace | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#/usr/bin/env sh | ||
|
||
# This script is to be executed when the docker container is started | ||
|
||
# Set UID of user www-data on guest to match the UID of the user on the host machine | ||
usermod -u $(stat -c "%u" $1) docker-container-user | ||
# Set GID of group www-data on guest to match the GID of the users primary group on the host machine | ||
groupmod -g $(stat -c "%g" $1) docker-container-user | ||
|
||
chown -R docker-container-user /workspace |