Skip to content

Commit

Permalink
Clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
Mokolea committed May 30, 2019
1 parent 6a73c48 commit 0070bac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@

FROM haskell

LABEL version="1.2.0"
LABEL version="1.2.1"
LABEL maintainer="Mario Ban <[email protected]>"

ENV DEFAULT_UID 1000
ENV DEFAULT_GID 1000

# Install additional packages
RUN apt-get update -y && \
apt-get install -y -o Acquire::Retries=10 \
Expand Down Expand Up @@ -44,7 +47,7 @@ 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 -G sudo docker
RUN groupadd --gid $DEFAULT_GID docker && useradd --uid $DEFAULT_UID --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
Expand All @@ -60,7 +63,7 @@ RUN sed -i -e 's/#force_color_prompt=yes/force_color_prompt=yes/' -e 's/#alias l
RUN cabal update && \
cabal install pandoc

ENV PATH="/home/docker/.cabal/bin:${PATH}"
ENV PATH /home/docker/.cabal/bin:$PATH

# Create and set working directory
WORKDIR /data
Expand Down

0 comments on commit 0070bac

Please sign in to comment.