-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 changed file
with
7 additions
and
2 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
FROM haskell | ||
|
||
LABEL version="1.1.1" | ||
LABEL version="1.2.0" | ||
LABEL maintainer="Mario Ban <[email protected]>" | ||
|
||
# Install additional packages | ||
|
@@ -27,6 +27,7 @@ RUN apt-get update -y && \ | |
joe \ | ||
vim \ | ||
less \ | ||
sudo \ | ||
procps && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
@@ -43,7 +44,11 @@ RUN cp /usr/share/zoneinfo/Europe/Zurich /etc/localtime | |
#RUN texhash | ||
|
||
# Add user and group | ||
RUN groupadd --gid 1000 docker && useradd --uid 1000 --create-home --no-log-init -g docker docker | ||
RUN groupadd --gid 1000 docker && useradd --uid 1000 --create-home --no-log-init -g docker -G sudo docker | ||
|
||
# No password for sudo | ||
RUN echo "docker ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/010_docker-nopasswd | ||
RUN chmod 440 /etc/sudoers.d/010_docker-nopasswd | ||
|
||
# Set user to use | ||
USER docker:docker | ||
|